diff options
author | zfo | 2016-05-30 04:40:22 +0200 |
---|---|---|
committer | zfo | 2016-05-30 04:40:22 +0200 |
commit | 29b7aff4941cccfe0653b48771aaff68faea5a91 (patch) | |
tree | dd5280a396ad984f577a04c939fdf8bb01ba12e0 | |
parent | 3c2050b3ac12f728021363292c66f670457fd852 (diff) | |
download | aur-29b7aff4941cccfe0653b48771aaff68faea5a91.tar.gz |
link ldmd-git properly with ldc-git
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -44,7 +44,7 @@ build() { git submodule update # only touch file if necessary - if grep -q 'ldc[.]conf' driver/configfile.cpp ; then + if grep -q 'ldc2[.]conf' driver/configfile.cpp ; then # patch the config file to be /etc/ldc2-git.conf sed 's/ldc2[.]conf/ldc2-git.conf/' -i driver/configfile.cpp fi @@ -53,6 +53,13 @@ build() { # dmd does static linking to the rescue! sed 's/"ldmd2" "dmd"/"dmd"/' -i cmake/Modules/FindDCompiler.cmake + # patch ldc to properly link to ldc-git (needed for ldmd) + sed 's/LDC_EXE ldc2/LDC_EXE ldc-git/' -i CMakeLists.txt + sed 's/LDMD_EXE ldmd2/LDMD_EXE ldmd-git/' -i CMakeLists.txt + # it's faster just to rename the config files + mv ldc2_phobos.conf.in ldc-git_phobos.conf.in + mv ldc2_install.conf.in ldc-git_install.conf.in + mkdir -p build && cd build # don't use ArchLinux LDFLAGS (#1494) @@ -77,8 +84,8 @@ package_ldc-git() { cd $srcdir/tmp_install_dir # binaries - install -D -m755 ./usr/bin/ldmd2 $pkgdir/usr/bin/ldmd-git - install -D -m755 ./usr/bin/ldc2 $pkgdir/usr/bin/ldc-git + install -D -m755 ./usr/bin/ldmd-git $pkgdir/usr/bin/ldmd-git + install -D -m755 ./usr/bin/ldc-git $pkgdir/usr/bin/ldc-git # supplementaries install -D -m644 $srcdir/ldc/bash_completion.d/ldc2 $pkgdir/usr/share/bash-completion/completions/ldc-git |