summaryrefslogtreecommitdiff
path: root/community/lib32-libphobos/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-28 03:35:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-28 03:35:53 +0000
commitdef73efccccb818d214cb818e8b4de8385444a43 (patch)
tree89db423b051ce9f971b6f7386ada2a3573b6e3b7 /community/lib32-libphobos/PKGBUILD
parenteb411a7c7cc929ada01019bd4c306116ce385693 (diff)
Fri Mar 28 03:32:00 UTC 2014
Diffstat (limited to 'community/lib32-libphobos/PKGBUILD')
-rw-r--r--community/lib32-libphobos/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/lib32-libphobos/PKGBUILD b/community/lib32-libphobos/PKGBUILD
new file mode 100644
index 000000000..f03c68184
--- /dev/null
+++ b/community/lib32-libphobos/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Mihails Strasuns <public@dicebot.lv>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Chris Brannon <cmbrannon79@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Anders Bergh <anders1@gmail.com>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgname=('lib32-libphobos' 'lib32-libphobos-devel')
+groups=('dlang' 'dlang-dmd')
+pkgver=2.065.0
+pkgrel=1
+arch=('x86_64')
+groups=('dlang' 'dlang-dmd')
+url="http://www.dlang.org"
+source=("git+http://github.com/D-Programming-Language/phobos.git#tag=v$pkgver"
+ "git+http://github.com/D-Programming-Language/druntime.git#tag=v$pkgver")
+sha1sums=('SKIP'
+ 'SKIP')
+makedepends=('dmd' 'git')
+depends=('lib32-curl')
+license=('custom')
+
+build() {
+ cd $srcdir/druntime
+ make -f posix.mak MODEL=32 RELEASE=1 DMD=dmd
+
+ cd $srcdir/phobos
+ make -f posix.mak MODEL=32 RELEASE=1 DMD=dmd
+}
+
+package_lib32-libphobos-devel() {
+ pkgdesc="The Phobos standard library for D programming language. Modules and static library (32-bit)"
+ depends=("dmd")
+ options=("staticlibs")
+ provides=("d-runtime=$pkgver" "d-stdlib=$pkgver")
+
+ install -Dm644 $srcdir/phobos/generated/linux/release/32/libphobos2.a $pkgdir/usr/lib32/libphobos2.a
+
+ install -Dm644 $srcdir/druntime/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 $srcdir/phobos/LICENSE_1_0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE-phobos
+}
+
+package_lib32-libphobos() {
+ pkgdesc="The Phobos standard library for D programming language (32-bit)"
+
+ install -Dm644 $srcdir/phobos/generated/linux/release/32/libphobos2.so $pkgdir/usr/lib32/libphobos2.so
+
+ install -Dm644 $srcdir/druntime/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE-druntime
+ install -Dm644 $srcdir/phobos/LICENSE_1_0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE-phobos
+}