diff options
Diffstat (limited to 'community/ldc/PKGBUILD')
-rw-r--r-- | community/ldc/PKGBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/community/ldc/PKGBUILD b/community/ldc/PKGBUILD index 7418a0219..4db3ef56e 100644 --- a/community/ldc/PKGBUILD +++ b/community/ldc/PKGBUILD @@ -1,7 +1,7 @@ -# $Id: PKGBUILD 81323 2012-12-17 23:11:03Z svenstaro $ +# $Id: PKGBUILD 81801 2012-12-30 15:21:03Z foutrelis $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> pkgname=ldc -pkgver=20121218 +pkgver=20121225 pkgrel=1 pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" arch=('i686' 'x86_64') @@ -10,8 +10,8 @@ license=('BSD') depends=('llvm' 'libconfig') makedepends=('git' 'cmake') backup=('etc/ldc2.conf') -source=() -md5sums=() +source=(fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch) +md5sums=('0dacd8e4b8f88030c107dbb2a35bcc42') _gitroot=git://github.com/ldc-developers/ldc.git _gitname=ldc @@ -37,7 +37,10 @@ build() { rm -rf "$srcdir/$_gitname-build" git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build" - + + # llvm/Support/IRBuilder.h was relocated in LLVM 3.2 + patch -Np1 -i "$srcdir/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch" + mkdir build && cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -49,7 +52,7 @@ build() { package() { cd "$srcdir/$_gitname-build" - + cd build make DESTDIR=$pkgdir install cd .. |