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