community/ldc to 1.31.0-1

This commit is contained in:
Kevin Mihelich 2023-02-22 00:20:48 +00:00
parent 6aee299ed7
commit bf89f78e45

View file

@ -10,17 +10,17 @@
pkgname=('ldc' 'liblphobos')
groups=('dlang' 'dlang-ldc')
pkgver=1.30.0
_pkgcommit=32f5a359dd9030b2dc667e1e7823a1b765496cac
_dversion=2.100.1
_clangversion=14.0.6 # related to where ldc2 looks for compiler-rt sanitizers
pkgver=1.31.0
_pkgcommit=91f28da37fa473a81aa550b74d7842b0122412f1
_dversion=2.101.2
_clangversion=15.0.7 # related to where ldc2 looks for compiler-rt sanitizers
epoch=3
pkgrel=2
pkgrel=1
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('x86_64')
url="https://github.com/ldc-developers/ldc"
license=('BSD')
makedepends=('git' 'cmake' 'llvm14' 'ldc' 'ninja')
makedepends=('git' 'cmake' 'llvm' 'ldc' 'ninja')
# Disable lto as linking the ldc2 binary fails
options=(!lto)
@ -65,7 +65,7 @@ build() {
-DLDC_WITH_LLD=OFF \
-DD_COMPILER_FLAGS="-link-defaultlib-shared=false" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
-DCMAKE_PREFIX_PATH=/usr/lib/llvm14 \
-DCMAKE_PREFIX_PATH=/usr/lib/llvm \
..
ninja -j2
}
@ -76,7 +76,7 @@ check() {
}
package_ldc() {
depends=('liblphobos' 'llvm14-libs' 'gcc' 'compiler-rt14')
depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt')
backup=('etc/ldc2.conf')
provides=("d-compiler=$_dversion")