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