1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Chris Brannon <cmbrannon79@gmail.com>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Anders Bergh <anders1@gmail.com>
5 # Contributor: Alexander Fehr <pizzapunk gmail com>
10 pkgdesc="The Digital Mars D compiler"
12 url="http://www.digitalmars.com/d/1.0/"
13 source=(http://ftp.digitalmars.com/dmd.$pkgver.zip)
17 optdepends=('libphobos: D standard runtime library'
18 'libtango: Alternative runtime library')
19 md5sums=('d5489b94f06c7ca2f4b5de62f7e6815a')
21 [[ $CARCH == "x86_64" ]] && makedepends=("${makedepends[@]}" 'gcc-multilib' 'lib32-glibc')
24 install -Dm644 "$srcdir/dmd/license.txt" "$pkgdir/usr/share/licenses/dmd/LICENSE"
26 if [ $CARCH == x86_64 ]; then
27 cd "$srcdir/dmd/linux/bin64"
29 cd "$srcdir/dmd/linux/bin32"
31 install -dm755 "$pkgdir/usr/bin"
32 install -m755 dmd rdmd dumpobj obj2asm "$pkgdir/usr/bin"
34 for x in "$srcdir"/dmd/man/man1/*.1; do
35 install -Dm644 "$x" "$pkgdir/usr/share/man/man1/$(basename "$x")"
38 for x in "$srcdir"/dmd/man/man1/*.5; do
39 install -Dm644 "$x" "$pkgdir/usr/share/man/man5/$(basename "$x")"