updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libphobos1 / PKGBUILD
blob31cb352b0d2f7c5b6d95ebda85387ac9cc65160e
1 # Maintainer: Chris Brannon <cmbrannon79@gmail.com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Anders Bergh <anders1@gmail.com>
4 # Contributor: Dawid Ciezarkiewicz <dawid.ciezarkiewicz@jabster.pl>
6 pkgname=libphobos1
7 pkgver=1.072
8 pkgrel=1
9 pkgdesc="Runtime library for the D programming language"
10 arch=('i686' x86_64)
11 url="http://www.digitalmars.com/d/1.0/"
12 source=(http://ftp.digitalmars.com/dmd.$pkgver.zip dmd.conf)
13 depends=(dmd=$pkgver)
14 license=('custom')
15 conflicts=('libtango')
17 build() {
18   install -d "$pkgdir/usr/include/d"
19   cd "$srcdir/dmd/src/phobos"
20   cp -Rf std "$pkgdir/usr/include/d"
21   cp -Rf etc "$pkgdir/usr/include/d"
22   cp -Rf internal "$pkgdir/usr/include/d"
23   cp -f {crc32,object,gcstats}.d "$pkgdir/usr/include/d"
25   if [ $CARCH == x86_64 ]; then
26     install -Dm644 "$srcdir/dmd/linux/lib64/libphobos.a" "$pkgdir/usr/lib/libphobos.a"
27   else
28     install -Dm644 "$srcdir/dmd/linux/lib32/libphobos.a" "$pkgdir/usr/lib/libphobos.a"
29   fi
31   install -Dm644 "$srcdir/dmd.conf" "$pkgdir/etc/dmd.conf"
33   # Get rid of this subdirectory; it's just an unpacked zlib source
34   # distribution.
35   rm -rf "${pkgdir}/usr/include/d/etc/c/zlib"
36   # Insure that files and directories under /usr/include/d have
37   # correct permissions.
38   find "${pkgdir}/usr/include/d" -type d -print0 |xargs -0 chmod 755
39   find "${pkgdir}/usr/include/d" -type f -print0 |xargs -0 chmod 644
40   install -Dm644 phoboslicense.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
43 md5sums=('d5489b94f06c7ca2f4b5de62f7e6815a'
44          'e93f0ccb1e5c00cd222af5a9be3f599a')