diff options
Diffstat (limited to 'main/distcc')
-rw-r--r-- | main/distcc/APKBUILD | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/main/distcc/APKBUILD b/main/distcc/APKBUILD index 8d2212c0c6..0ba9a0966d 100644 --- a/main/distcc/APKBUILD +++ b/main/distcc/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=distcc pkgver=3.1 -pkgrel=6 +pkgrel=7 pkgdesc="A distributed C, C++, Obj C compiler" url="http://distcc.org" arch="all" @@ -13,20 +13,31 @@ source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2 distcc-hardened.patch distccd.initd distccd.confd" subpackages="$pkgname-doc $pkgname-pump" - -build () -{ - cd "$srcdir/$pkgname-$pkgver" - for i in ../*.patch; do - msg "applying $i" - patch -p1 < $i || return 1 + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac done +} + +build() { + cd "$_builddir" ./configure --prefix=/usr \ --without-gtk \ --sysconfdir=/etc \ - --mandir=/usr/share/man + --disable-Werror \ + --mandir=/usr/share/man \ + || return 1 make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install install -D -m644 ../distccd.confd "$pkgdir"/etc/conf.d/distccd |