diff options
Diffstat (limited to 'community/distcc/PKGBUILD')
-rw-r--r-- | community/distcc/PKGBUILD | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/community/distcc/PKGBUILD b/community/distcc/PKGBUILD index 223fd2350..23ff60280 100644 --- a/community/distcc/PKGBUILD +++ b/community/distcc/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 59085 2009-11-20 06:29:43Z giovanni $ +# $Id: PKGBUILD 50002 2011-06-23 09:01:13Z spupykin $ # Maintainer: Judd Vinet <jvinet@zeroflux.org> # Contributor: Giovanni Scafora <giovanni@archlinux.org> pkgname=distcc pkgver=3.1 -pkgrel=4 +pkgrel=5 pkgdesc="A distributed C, C++, Obj C compiler" arch=('i686' 'x86_64' 'mips64el') url="http://code.google.com/p/distcc/" @@ -21,14 +21,16 @@ md5sums=('a1a9d3853df7133669fffec2a9aab9f3' build() { cd "${srcdir}/${pkgname}-${pkgver}" - sed -i "s/\(python2\).*$/\1/" configure - ./configure --prefix=/usr \ - --disable-Werror \ - --without-gtk \ + [ -f Makefile ] || ./configure --prefix=/usr \ + --with-gtk \ --sysconfdir=/etc \ - --mandir=/usr/share/man || return 1 - make || return 1 - make DESTDIR="${pkgdir}/" install || return 1 + --mandir=/usr/share/man + make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python2 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}/" INCLUDESERVER_PYTHON=/usr/bin/python2 install install -D -m644 ${srcdir}/distccd.conf.d ${pkgdir}/etc/conf.d/distccd install -D -m755 ${srcdir}/distccd ${pkgdir}/etc/rc.d/distccd |