1 # Contributor: Jerome Berger <jeberger@free.fr>
5 pkgdesc="Runtime library for the D programming language (gdc version)"
7 url="http://www.dsource.org/projects/tango/"
9 depends=('gdc-svn>=214')
10 options=('!libtool' '!emptydirs')
12 source=("http://downloads.dsource.org/projects/tango/$pkgver/tango-$pkgver-src.tar.gz")
13 md5sums=('531233e7bc7838648b610e34e5616911')
16 cd "$srcdir/tango-$pkgver-src/lib"
18 export MAKEFLAGS="-j1"
19 ./build-gdc.sh || (echo "build-gdc failed" && return 1) || return 1
20 ./build-tango.sh gdc || (echo "build-tango failed" && return 1) || return 1
22 _gdcversion=$(gdc -dumpversion)
23 install -Dm 755 libgphobos.a ${startdir}/pkg/usr/lib/libgphobos.a.tango || return 1
24 install -Dm 755 libgtango.a ${startdir}/pkg/usr/lib || return 1
25 install -Dm 644 ../object.di ${startdir}/pkg/usr/include/d/$_gdcversion/object.di.tango || return 1
26 cp -a ../tango ${startdir}/pkg/usr/include/d/$_gdcversion || return 1
27 cp -a ../std ${startdir}/pkg/usr/include/d/$_gdcversion/std.tango || return 1
30 # vim:set ts=2 sw=2 et: