diff options
author | root <root@rshg054.dnsready.net> | 2012-06-08 19:39:26 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-08 19:39:26 +0000 |
commit | 63bd66056e59c02a988bf17876bd72e27bb4dc8b (patch) | |
tree | 9dc5a47228611569e90bbdf40b10943f0e5fc5aa /community/lib32-libphobos-ldc/PKGBUILD | |
parent | 8735a5c54cf26dd5b5b686850f800a4aed49ff78 (diff) |
Fri Jun 8 19:39:26 UTC 2012
Diffstat (limited to 'community/lib32-libphobos-ldc/PKGBUILD')
-rw-r--r-- | community/lib32-libphobos-ldc/PKGBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/community/lib32-libphobos-ldc/PKGBUILD b/community/lib32-libphobos-ldc/PKGBUILD new file mode 100644 index 000000000..cc43715a9 --- /dev/null +++ b/community/lib32-libphobos-ldc/PKGBUILD @@ -0,0 +1,57 @@ +# $Id: PKGBUILD 72029 2012-06-06 11:58:40Z svenstaro $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +pkgname=lib32-libphobos-ldc +pkgver=20120607 +pkgrel=1 +pkgdesc="libphobos for ldc (32-bit)" +arch=('x86_64') +url="http://www.dsource.org/projects/ldc" +license=('BSD') +depends=('llvm' 'libconfig') +makedepends=('git' 'cmake') +source=() +md5sums=() + +_gitroot=git://github.com/ldc-developers/ldc.git +_gitname=ldc +_gitbranch=llvm-3.1 + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone --branch "$_gitbranch" "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \ + -DMULTILIB=ON \ + .. + make +} + +package() { + cd "$srcdir/$_gitname-build" + + cd build + make DESTDIR=$pkgdir install + cd .. + + # We don't want anything but the 32-bit libs + rm -rf $pkgdir/usr/{share,lib,include,bin} $pkgdir/etc + + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |