From 6aeb515f4afd10afb53b21df18d03b0d5f3a200f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Jan 2012 23:14:43 +0000 Subject: Sat Jan 7 23:14:43 UTC 2012 --- community/libphobos/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 community/libphobos/PKGBUILD (limited to 'community/libphobos/PKGBUILD') diff --git a/community/libphobos/PKGBUILD b/community/libphobos/PKGBUILD new file mode 100644 index 000000000..227067776 --- /dev/null +++ b/community/libphobos/PKGBUILD @@ -0,0 +1,45 @@ +# $Id: PKGBUILD 61679 2012-01-06 12:52:49Z cbrannon $ +# Maintainer: Chris Brannon +# Contributor: Andrea Scarpino +# Contributor: Anders Bergh +# Contributor: Dawid Ciezarkiewicz + +pkgname=libphobos +pkgver=1.072 +pkgrel=1 +pkgdesc="Runtime library for the D programming language" +arch=('i686' x86_64) +url="http://www.digitalmars.com/d/1.0/" +source=(http://ftp.digitalmars.com/dmd.$pkgver.zip dmd.conf) +depends=(dmd=$pkgver) +license=('custom') +conflicts=('libtango') + +build() { + install -d "$pkgdir/usr/include/d" + cd "$srcdir/dmd/src/phobos" + cp -Rf std "$pkgdir/usr/include/d" + cp -Rf etc "$pkgdir/usr/include/d" + cp -Rf internal "$pkgdir/usr/include/d" + cp -f {crc32,object,gcstats}.d "$pkgdir/usr/include/d" + + if [ $CARCH == x86_64 ]; then + install -Dm644 "$srcdir/dmd/linux/lib64/libphobos.a" "$pkgdir/usr/lib/libphobos.a" + else + install -Dm644 "$srcdir/dmd/linux/lib32/libphobos.a" "$pkgdir/usr/lib/libphobos.a" + fi + + install -Dm644 "$srcdir/dmd.conf" "$pkgdir/etc/dmd.conf" + + # Get rid of this subdirectory; it's just an unpacked zlib source + # distribution. + rm -rf "${pkgdir}/usr/include/d/etc/c/zlib" + # Insure that files and directories under /usr/include/d have + # correct permissions. + find "${pkgdir}/usr/include/d" -type d -print0 |xargs -0 chmod 755 + find "${pkgdir}/usr/include/d" -type f -print0 |xargs -0 chmod 644 + install -Dm644 phoboslicense.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +md5sums=('d5489b94f06c7ca2f4b5de62f7e6815a' + 'e93f0ccb1e5c00cd222af5a9be3f599a') -- cgit v1.2.3-54-g00ecf