community/ldc to 1.15.0-1

This commit is contained in:
Kevin Mihelich 2019-04-13 17:51:18 +00:00
parent ee7cf2fa38
commit 56f1913faf
2 changed files with 8 additions and 31 deletions

View file

@ -10,31 +10,29 @@ buildarch=12
pkgname=('ldc' 'liblphobos') pkgname=('ldc' 'liblphobos')
groups=('dlang' 'dlang-ldc') groups=('dlang' 'dlang-ldc')
pkgver=1.14.0 pkgver=1.15.0
_pkgcommit=e319c790f574d630ab0b930b980cfc1120ebe1d8 _pkgcommit=766add462e980f8bab9934fcbf8659a6595f7944
_dversion=2.084.1 _dversion=2.085.1
_clangversion=8.0.0 # related to where ldc2 looks for compiler-rt sanitizers _clangversion=8.0.0 # related to where ldc2 looks for compiler-rt sanitizers
epoch=2 epoch=2
pkgrel=2 pkgrel=1
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('x86_64') arch=('x86_64')
url="https://github.com/ldc-developers/ldc" url="https://github.com/ldc-developers/ldc"
license=('BSD') license=('BSD')
makedepends=('git' 'cmake' 'llvm7' 'ldc') makedepends=('git' 'cmake' 'llvm' 'ldc')
source=( source=(
"git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit" "git+https://github.com/ldc-developers/ldc#commit=$_pkgcommit"
"git+https://github.com/ldc-developers/druntime.git" "git+https://github.com/ldc-developers/druntime.git"
"git+https://github.com/ldc-developers/phobos.git" "git+https://github.com/ldc-developers/phobos.git"
"git+https://github.com/ldc-developers/dmd-testsuite.git" "git+https://github.com/ldc-developers/dmd-testsuite.git"
"ldc2.conf"
) )
sha256sums=('SKIP' sha256sums=('SKIP'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP' 'SKIP')
'55ba34319db861a761797ac0075b0b1f5f4d37a243075aedb628aeedc77cc9d6')
prepare() { prepare() {
cd "$srcdir/ldc" cd "$srcdir/ldc"
@ -63,6 +61,7 @@ build() {
-DBUILD_LTO_LIBS=OFF \ -DBUILD_LTO_LIBS=OFF \
-DLDC_WITH_LLD=OFF \ -DLDC_WITH_LLD=OFF \
-DD_COMPILER_FLAGS="-link-defaultlib-shared=false" \ -DD_COMPILER_FLAGS="-link-defaultlib-shared=false" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES="\"-link-defaultlib-shared\"" \
.. ..
make make
} }
@ -73,7 +72,7 @@ check() {
} }
package_ldc() { package_ldc() {
depends=('liblphobos' 'llvm7-libs' 'gcc' 'compiler-rt') depends=('liblphobos' 'llvm-libs' 'gcc' 'compiler-rt')
backup=('etc/ldc2.conf') backup=('etc/ldc2.conf')
provides=("d-compiler=$_dversion") provides=("d-compiler=$_dversion")
@ -96,9 +95,6 @@ package_ldc() {
# licenses # licenses
install -D -m644 "$srcdir/ldc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -D -m644 "$srcdir/ldc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# default configuration files
install -D -m644 "$srcdir/ldc2.conf" "$pkgdir/etc/ldc2.conf"
} }
package_liblphobos() { package_liblphobos() {

View file

@ -1,19 +0,0 @@
// See comments in driver/config.d in ldc source tree for grammar description of
// this config file.
// The default group is required
default:
{
// default switches injected before all explicit command-line switches
switches = [
"-I/usr/include/dlang/ldc/ldc",
"-I/usr/include/dlang/ldc",
"-L--no-warn-search-mismatch",
"-defaultlib=phobos2-ldc,druntime-ldc",
"-link-defaultlib-shared"
];
// default switches appended after all explicit command-line switches
post-switches = [
"-L-L/usr/lib"
];
};