1 # Maintainer: Mihail Strashun <m.strashun@gmail.com> aka Volfram
5 pkgdesc="Runtime library & Standard language library for the D programming language"
7 url="http://www.digitalmars.com/d/2.0/"
8 source=(http://ftp.digitalmars.com/dmd.$pkgver.zip)
10 conflicts=('libtango')
11 provides=('libphobos2='$pkgver)
12 md5sums=('133e80a929eaeddc9fe8964bbfa4cc4f')
16 mkdir -p $pkgdir/usr/include/d
17 cd $srcdir/dmd2/src/phobos
18 cp -Rf std $pkgdir/usr/include/d || return 1
19 cp -Rf etc $pkgdir/usr/include/d || return 1
20 cp -f {crc32,phobos,unittest}.d $pkgdir/usr/include/d || return 1
22 mkdir -p $pkgdir/usr/include/d/druntime
23 cd $srcdir/dmd2/src/druntime/
24 cp -Rf import $pkgdir/usr/include/d/druntime || return 1
26 install -Dm644 $srcdir/dmd2/linux/lib/libphobos2.a $pkgdir/usr/lib/libphobos2.a || return 1
27 install -Dm644 $srcdir/dmd2/linux/lib/libdruntime.a $pkgdir/usr/lib/libdruntime.a || return 1
29 install -Dm644 $srcdir/dmd2/src/phobos/phoboslicense.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1