From 7d11e9346ebd0f9c378952caee0c82d6ca815f4e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jun 2012 00:01:46 +0000 Subject: Fri Jun 8 00:01:46 UTC 2012 --- community/ldc/PKGBUILD | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'community/ldc') 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 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 } -- cgit v1.2.3-54-g00ecf