1 # Maintainer: Chris Brannon <cmbrannon79@gmail.com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Anders Bergh <anders1@gmail.com>
4 # Contributor: Dawid Ciezarkiewicz <dawid.ciezarkiewicz@jabster.pl>
9 pkgdesc="Runtime library for the D programming language"
11 url="http://www.digitalmars.com/d/1.0/"
12 source=(http://ftp.digitalmars.com/dmd.$pkgver.zip dmd.conf)
15 conflicts=('libtango')
18 install -d "$pkgdir/usr/include/d"
19 cd "$srcdir/dmd/src/phobos"
20 cp -Rf std "$pkgdir/usr/include/d"
21 cp -Rf etc "$pkgdir/usr/include/d"
22 cp -Rf internal "$pkgdir/usr/include/d"
23 cp -f {crc32,object,gcstats}.d "$pkgdir/usr/include/d"
25 if [ $CARCH == x86_64 ]; then
26 install -Dm644 "$srcdir/dmd/linux/lib64/libphobos.a" "$pkgdir/usr/lib/libphobos.a"
28 install -Dm644 "$srcdir/dmd/linux/lib32/libphobos.a" "$pkgdir/usr/lib/libphobos.a"
31 install -Dm644 "$srcdir/dmd.conf" "$pkgdir/etc/dmd.conf"
33 # Get rid of this subdirectory; it's just an unpacked zlib source
35 rm -rf "${pkgdir}/usr/include/d/etc/c/zlib"
36 # Insure that files and directories under /usr/include/d have
37 # correct permissions.
38 find "${pkgdir}/usr/include/d" -type d -print0 |xargs -0 chmod 755
39 find "${pkgdir}/usr/include/d" -type f -print0 |xargs -0 chmod 644
40 install -Dm644 phoboslicense.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
43 md5sums=('d5489b94f06c7ca2f4b5de62f7e6815a'
44 'e93f0ccb1e5c00cd222af5a9be3f599a')