updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / libphobos2-bin / PKGBUILD
blob584580784060495e604a92d8a524e57e1ac672b4
1 # Maintainer: Mihail Strashun <m.strashun@gmail.com> aka Volfram
2 pkgname=libphobos2-bin
3 pkgver=2.052
4 pkgrel=1
5 pkgdesc="Runtime library & Standard language library for the D programming language"
6 arch=('i686' 'x86_64')
7 url="http://www.digitalmars.com/d/2.0/"
8 source=(http://ftp.digitalmars.com/dmd.$pkgver.zip)
9 license=('custom')
10 conflicts=('libtango')
11 provides=('libphobos2='$pkgver)
12 md5sums=('133e80a929eaeddc9fe8964bbfa4cc4f')
15 build() {
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