1 # Maintainer: Mihail Strashun <m.strashun@gmail.com> aka Volfram
5 pkgdesc="The Digital Mars D compiler (D2 version)"
7 url="http://www.digitalmars.com/d/2.0/"
8 source=(http://ftp.digitalmars.com/dmd.$pkgver.zip)
9 md5sums=('133e80a929eaeddc9fe8964bbfa4cc4f' )
10 provides=('d-compiler='$pkgver 'dmd2='$pkgver)
12 options=('!strip' 'docs')
14 optdepends=('libphobos2: Standard D language library & runtime')
16 if [ $CARCH = 'x86_64' ]
21 if [ $CARCH = 'i686' ]
28 install -Dm644 $srcdir/dmd2/license.txt $pkgdir/usr/share/licenses/dmd/COPYING
31 install -Dm755 $srcdir/dmd2/linux/bin/dmd $pkgdir/usr/bin/dmd
32 install -Dm755 $srcdir/dmd2/linux/bin/dumpobj $pkgdir/usr/bin/dumpobj
33 install -Dm755 $srcdir/dmd2/linux/bin/obj2asm $pkgdir/usr/bin/obj2asm
34 install -Dm755 $srcdir/dmd2/linux/bin/rdmd $pkgdir/usr/bin/rdmd
35 echo -e "[Environment]\nDFLAGS=-m$archstr -I/usr/include/d -I/usr/include/d/druntime/import -L-L/usr/lib -L-lrt" > $startdir/dmd.conf
36 install -Dm644 $startdir/dmd.conf $pkgdir/etc/dmd.conf
38 for x in $srcdir/dmd2/man/man1/*.1; do
39 install -Dm644 $x "$pkgdir/usr/share/man/man1/$(basename $x)"
42 for x in $srcdir/dmd2/man/man1/*.5; do
43 install -Dm644 $x "$pkgdir/usr/share/man/man5/$(basename $x)"
47 mkdir -p $pkgdir/usr/share/doc/d/phobos
48 docs="$srcdir/dmd2/html/d"
49 for x in $(find $docs/*.html $docs/*.gif $docs/*.ico $docs/*.jpg $docs/*.css); do
50 install -Dm644 $x "$pkgdir/usr/share/doc/d/$(basename $x)"
53 for x in $(find $docs/phobos/*.html $docs/phobos/*.gif $docs/phobos/*.css); do
54 install -Dm644 $x "$pkgdir/usr/share/doc/d/phobos/$(basename $x)"