Date: Tuesday, November 12, 2013 @ 19:05:57 Author: dicebot Revision: 100870
upgpkg: lib32-liblphobos-devel 20130604-2 Make [multilib] lphobos conform [community] counterpart Modified: lib32-libphobos-ldc/trunk/PKGBUILD ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-11-12 17:18:55 UTC (rev 100869) +++ PKGBUILD 2013-11-12 18:05:57 UTC (rev 100870) @@ -1,39 +1,42 @@ # $Id: PKGBUILD 72029 2012-06-06 11:58:40Z svenstaro $ -# Maintainer: Sven-Hendrik Haase <[email protected]> -pkgname=lib32-libphobos-ldc +# Maintainer: Mihails Strasuns <[email protected]> +# Contributor: Sven-Hendrik Haase <[email protected]> +pkgname=lib32-liblphobos-devel +groups=('dlang' 'dlang-ldc') +provides=("d-runtime" "d-stdlib") pkgver=20130604 -pkgrel=1 -pkgdesc="libphobos for ldc (32-bit)" +pkgrel=2 +pkgdesc="D standard library (libphobos) for LDC compiler (32-bit)" arch=('x86_64') -url="http://www.dsource.org/projects/ldc" +url="https://github.com/ldc-developers/ldc" license=('BSD') -depends=('llvm' 'libconfig') -makedepends=('git' 'cmake') +depends=('ldc') +makedepends=('git' 'llvm' 'libconfig' 'cmake') source=("git://github.com/ldc-developers/ldc.git") md5sums=("SKIP") +options=("staticlibs") build() { - cd "$srcdir"/ldc - git submodule update --init --recursive + cd "$srcdir"/ldc - mkdir build && cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \ - -DMULTILIB=ON \ - .. - make + git submodule update --init --recursive + + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \ + -DMULTILIB=ON \ + .. + make } package() { - cd "$srcdir"/ldc + cd "$srcdir"/ldc - cd build - make DESTDIR=$pkgdir install - cd .. + # We don't want anything but the 32-bit libs + install -D -m644 build/lib32/libphobos-ldc.a $pkgdir/usr/lib32/liblphobos.a + install -D -m644 build/lib32/libphobos-ldc-debug.a $pkgdir/usr/lib32/liblphobos-debug.a - # 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 +} - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE -}
