summaryrefslogtreecommitdiff
path: root/community/ldc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-08 00:01:46 +0000
committerroot <root@rshg054.dnsready.net>2012-06-08 00:01:46 +0000
commit7d11e9346ebd0f9c378952caee0c82d6ca815f4e (patch)
tree37cbc273cef015a41013f52ed6a90fb16eca34f4 /community/ldc
parent334c2a7916a80d08b1c216cfbf02135e64891632 (diff)
Fri Jun 8 00:01:46 UTC 2012
Diffstat (limited to 'community/ldc')
-rw-r--r--community/ldc/PKGBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/community/ldc/PKGBUILD b/community/ldc/PKGBUILD
index 3e29ab293..ba9552118 100644
--- a/community/ldc/PKGBUILD
+++ b/community/ldc/PKGBUILD
@@ -1,19 +1,24 @@
-# $Id: PKGBUILD 68277 2012-03-21 07:36:10Z svenstaro $
+# $Id: PKGBUILD 72035 2012-06-06 13:48:23Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=ldc
-pkgver=20120321
-pkgrel=1
+pkgver=20120606
+pkgrel=2
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('i686' 'x86_64')
url="http://www.dsource.org/projects/ldc"
license=('BSD')
depends=('llvm' 'libconfig')
makedepends=('git' 'cmake')
+backup=('etc/ldc2.conf')
source=()
md5sums=()
_gitroot=git://github.com/ldc-developers/ldc.git
_gitname=ldc
+_gitbranch=llvm-3.1
+
+[[ $CARCH == "x86_64" ]] && _multilib="ON"
+[[ $CARCH == "i686" ]] && _multilib="OFF"
build() {
cd "$srcdir"
@@ -23,7 +28,7 @@ build() {
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
- git clone "$_gitroot" "$_gitname"
+ git clone --branch "$_gitbranch" "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
@@ -37,6 +42,7 @@ build() {
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \
+ -DMULTILIB=$_multilib \
..
make
}
@@ -52,4 +58,7 @@ package() {
mv $pkgdir/etc/bash_completion.d $pkgdir/usr/share/bash-completion/completions
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+
+ # We don't actually want the multilib libs in this package
+ rm -rf $pkgdir/usr/lib32
}