diff options
author | Florian Pritz | 2016-12-06 13:10:00 +0100 |
---|---|---|
committer | Florian Pritz | 2016-12-06 13:10:22 +0100 |
commit | 65655c40edaeae4e54715ea79c720f573bf59150 (patch) | |
tree | aa9f4f42c4dcd2fdebf58a0666dccf38db90f876 | |
download | aur-65655c40edaeae4e54715ea79c720f573bf59150.tar.gz |
initial commit
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2892cc38b63a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +# Generated by mksrcinfo v8 +# Tue Dec 6 12:10:17 UTC 2016 +pkgbase = lib32-liblphobos + pkgdesc = D standard library (libphobos) for LDC compiler (32-bit) + pkgver = 0.15.1 + pkgrel = 1 + url = https://github.com/ldc-developers/ldc + arch = x86_64 + groups = dlang + groups = dlang-ldc + license = BSD + makedepends = git + makedepends = llvm + makedepends = libconfig + makedepends = cmake + depends = ldc + depends = lib32-curl + depends = lib32-gcc-libs + provides = d-runtime + provides = d-stdlib + replaces = lib32-liblphobos-devel + options = staticlibs + source = git://github.com/ldc-developers/ldc.git#tag=v0.15.1 + md5sums = SKIP + +pkgname = lib32-liblphobos + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a24e94cd49c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 72029 2012-06-06 11:58:40Z svenstaro $ +# Maintainer: Mihails Strasuns <public@dicebot.lv> +# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> +pkgname=lib32-liblphobos +groups=('dlang' 'dlang-ldc') +provides=("d-runtime" "d-stdlib") +replaces=("lib32-liblphobos-devel") +pkgver=0.15.1 +pkgrel=1 +pkgdesc="D standard library (libphobos) for LDC compiler (32-bit)" +arch=('x86_64') +url="https://github.com/ldc-developers/ldc" +license=('BSD') +depends=('ldc' 'lib32-curl' 'lib32-gcc-libs') +makedepends=('git' 'llvm' 'libconfig' 'cmake') +source=("git://github.com/ldc-developers/ldc.git#tag=v$pkgver") +md5sums=("SKIP") +options=("staticlibs") + +build() { + cd "$srcdir"/ldc + + git submodule update --init --recursive + + mkdir build && cd build + cmake \ + -DMULTILIB=ON \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINCLUDE_INSTALL_DIR=/usr/include/dlang/ldc \ + -DBUILD_SHARED_LIBS=ON \ + .. + + make +} + +package() { + cd "$srcdir"/ldc + + # licenses + install -D -m644 "$srcdir/ldc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # We don't want anything but the 32-bit libs + install -D -m644 $srcdir/ldc/build/lib32/libphobos2-ldc.so $pkgdir/usr/lib32/liblphobos2.so + install -D -m644 $srcdir/ldc/build/lib32/libdruntime-ldc.so $pkgdir/usr/lib32/libldruntime.so + install -D -m644 $srcdir/ldc/build/lib32/libphobos2-ldc-debug.so $pkgdir/usr/lib32/liblphobos2-debug.so + install -D -m644 $srcdir/ldc/build/lib32/libdruntime-ldc-debug.so $pkgdir/usr/lib32/libldruntime-debug.so +} |