updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libtango1 / PKGBUILD
blob76cd9195ef84fd5d962933a0e088019fa3a45fd6
1 # $Id$
2 # Maintainer: Chris Brannon <cmbrannon79@gmail.com>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Anders Bergh <anders1@gmail.com>
6 pkgname=libtango1
7 pkgver=0.99.9
8 pkgrel=1
9 pkgdesc="Runtime library for the D programming language"
10 arch=('i686')
11 url="http://dsource.org/projects/tango"
12 source=(http://downloads.dsource.org/projects/tango/$pkgver/tango-$pkgver-src.tar.gz
13         tango-headers.patch
14         dmd.conf)
15 depends=('dmd')
16 license=('custom')
17 conflicts=('libphobos')
18 options=('!makeflags')
20 build() {
21   cd "$srcdir/tango-$pkgver"
23   # This patch brings one of our header files up-to-date with the one
24   # included in the dmd + tango binary bundle distributed by upstream.
25   # That bundle was built after this source was released.
26   patch -p1 < "$srcdir/tango-headers.patch" || return 1
28   cd build/script
30   export MAKEFLAGS=-j1
31   ./bob.sh --runtime --user dmd || return 1
33   # I'm leary of that script.  The README.txt file in build/script
34   # warns that the contents of this directory are for internal use only.
35   # But the library builds successfully.  I tested several of the
36   # example programs, and they're fine.
38   install -dm755 "$pkgdir/usr/lib" "$pkgdir/usr/include/d" || return 1
39   install -m644 "$srcdir/tango-$pkgver/libtango.a" "$pkgdir/usr/lib/libtango-dmd.a" || return 1
40   install -m644 "$srcdir/tango-$pkgver/object.di" "$pkgdir/usr/include/d/object.di" || return 1
41   cp -Rf "$srcdir/tango-$pkgver/tango" "$pkgdir/usr/include/d" || return 1
42   # This subdirectory isn't part of the binary distribution,
43   # so we don't need it.
44   rm -rf "$pkgdir/usr/include/d/tango/core/rt"
46   install -Dm644 "$srcdir/dmd.conf" "$pkgdir/etc/dmd.conf" || return 1
47   install -Dm644 "$srcdir/tango-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" || return 1
49 md5sums=('3be02f042c59a8b1e2c55394945d2ce1'
50          '7c03558a8a6975198c4d73375bc8f105'
51          '99eaa2affc06ec0867bcd9535587e1a6')