updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dsss / PKGBUILD
blobf900b89666b279b4d16068638b4e5e2c54ca1c2c
1 # $Id$
2 # Maintainer: Chris Brannon <cmbrannon79@gmail.com>
3 # Contributor: Anders Bergh <anders1@gmail.com>
4 # Contributor: Ustalov "eveel" Dmitry <eveeel@gmail.com>
5 pkgname=dsss
6 pkgver=0.78
7 pkgrel=2
8 pkgdesc="The D Shared Software System"
9 arch=(i686)
10 url="http://dsource.org/projects/dsss"
11 license=('MIT')
12 depends=(gcc-libs)
13 makedepends=('dmd1' 'libphobos1')
14 source=(http://svn.dsource.org/projects/dsss/downloads/$pkgver/dsss-$pkgver.tar.bz2)
15 md5sums=('e018d5174a8d1a0c873056634389a060')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   # rebuild makefile is broken
21   export MAKEFLAGS="-j1"
23   make -f Makefile.dmd.posix || return 1
26 package() {
27   cd "$srcdir/$pkgname-$pkgver"
28   ./dsss install \
29     --prefix="$pkgdir/usr" \
30     --libdir="$pkgdir/usr/lib" \
31     --includedir="$pkgdir/usr/include/d" \
32     --docdir="$pkgdir/usr/share/doc" \
33     --sysconfdir="$pkgdir/etc" \
34     --scratchdir="$pkgdir/tmp" || return 1
36   # Fix permissions.
37   chmod 644 "$pkgdir/usr/share/dsss/manifest/dsss.manifest"
38   install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1