PKGBUILDs/community/distcc/PKGBUILD

68 lines
2 KiB
Bash
Raw Normal View History

2018-01-10 13:45:42 +00:00
# $Id$
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
2012-09-05 12:32:30 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added --without-avahi to configure
2011-10-24 17:48:21 +00:00
# - removed gtk2 from deps and --with-gtk from configure
# - patch to allow zero timeout (INT_MAX time to complete)
pkgname=distcc
2014-07-07 11:10:21 +00:00
pkgver=3.2rc1
2018-01-11 13:43:39 +00:00
pkgrel=4
2018-01-10 13:45:42 +00:00
pkgdesc='Distributed C, C++ and Objective-C compiler'
arch=('x86_64')
url='https://github.com/distcc/distcc'
license=('GPL')
2018-01-10 13:45:42 +00:00
depends=('popt')
makedepends=('gtk2' 'python2')
2011-09-04 00:03:32 +00:00
optdepends=('python2')
2012-12-24 18:33:23 +00:00
backup=('etc/conf.d/distccd'
2018-01-10 13:45:42 +00:00
'etc/distcc/hosts')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
distccd.conf.d
distccd.service
allow-zero-timeout.patch)
2018-01-10 13:45:42 +00:00
sha256sums=('33e85981ff6afd94efc38b23b2d8b9036b3dff2dc6eac6982b9ff0ae1de64caa'
'43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
'0f18ffb58647eeba643f28e9029a5d307100df3470eb228097f2b3f4196d8098'
'73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
prepare() {
2018-01-10 13:45:42 +00:00
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../allow-zero-timeout.patch
./autogen.sh
}
build() {
2018-01-10 13:45:42 +00:00
cd "$srcdir/$pkgname-$pkgver"
2018-01-10 13:45:42 +00:00
[ -f Makefile ] || PYTHON=/usr/bin/python2 \
./configure \
--prefix=/usr \
2018-01-11 13:43:39 +00:00
--sysconfdir=/etc \
--mandir=/usr/share/man \
--enable-rfc2553 \
--without-avahi
2011-10-24 14:47:56 +00:00
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python2
}
package() {
2018-01-10 13:45:42 +00:00
cd "$srcdir/$pkgname-$pkgver"
2018-01-10 13:45:42 +00:00
make DESTDIR="$pkgdir" INCLUDESERVER_PYTHON=/usr/bin/python2 install
2012-09-05 12:32:30 +00:00
2018-01-11 13:43:39 +00:00
install -Dm644 "$srcdir/distccd.conf.d" "$pkgdir/etc/conf.d/distccd"
install -Dm644 "$srcdir/distccd.service" \
"$pkgdir/usr/lib/systemd/system/distccd.service"
2018-01-10 13:45:42 +00:00
install -d "$pkgdir/usr/lib/$pkgname/bin"
2018-01-11 13:43:39 +00:00
for bin in c++ cc cpp g++ gcc; do
2018-01-10 13:45:42 +00:00
ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
done
}
2018-01-10 13:45:42 +00:00
2018-01-11 13:43:39 +00:00
# vim: ts=2 sw=2 et: