2018-01-10 13:45:42 +00:00
|
|
|
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
|
|
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
2011-09-03 23:55:43 +00:00
|
|
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
|
|
|
|
2012-09-05 12:32:30 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2011-09-03 23:55:43 +00:00
|
|
|
# - added --without-avahi to configure
|
2011-10-24 17:48:21 +00:00
|
|
|
# - removed gtk2 from deps and --with-gtk from configure
|
2014-07-07 11:41:06 +00:00
|
|
|
# - patch to allow zero timeout (INT_MAX time to complete)
|
2011-09-03 23:55:43 +00:00
|
|
|
|
|
|
|
pkgname=distcc
|
2018-03-26 14:05:42 +00:00
|
|
|
pkgver=3.3
|
2018-03-27 23:55:56 +00:00
|
|
|
pkgrel=2
|
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'
|
2011-09-03 23:55:43 +00:00
|
|
|
license=('GPL')
|
2018-01-10 13:45:42 +00:00
|
|
|
depends=('popt')
|
2018-03-26 14:05:42 +00:00
|
|
|
makedepends=('git' 'python' 'setconf')
|
|
|
|
optdepends=('python')
|
2012-12-24 18:33:23 +00:00
|
|
|
backup=('etc/conf.d/distccd'
|
2018-01-10 13:45:42 +00:00
|
|
|
'etc/distcc/hosts')
|
2018-03-26 14:05:42 +00:00
|
|
|
source=("git+https://github.com/distcc/distcc#tag=v$pkgver"
|
|
|
|
'distccd.conf.d'
|
|
|
|
'distccd.service'
|
2014-07-07 11:41:06 +00:00
|
|
|
allow-zero-timeout.patch)
|
2018-03-26 14:05:42 +00:00
|
|
|
sha256sums=('SKIP'
|
2018-01-10 13:45:42 +00:00
|
|
|
'43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
|
|
|
|
'0f18ffb58647eeba643f28e9029a5d307100df3470eb228097f2b3f4196d8098'
|
|
|
|
'73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
|
2014-07-07 11:41:06 +00:00
|
|
|
prepare() {
|
2018-03-26 14:05:42 +00:00
|
|
|
cd "$pkgname"
|
|
|
|
|
|
|
|
patch -p1 -i ../allow-zero-timeout.patch
|
|
|
|
|
2018-01-10 13:45:42 +00:00
|
|
|
./autogen.sh
|
2018-03-26 14:05:42 +00:00
|
|
|
|
|
|
|
setconf gnome/distccmon-gnome.desktop Name 'DistCC Monitor'
|
|
|
|
sed -i 's/ install-gnome-data//g' Makefile.in
|
2014-07-07 11:41:06 +00:00
|
|
|
}
|
2011-09-03 23:55:43 +00:00
|
|
|
|
|
|
|
build() {
|
2018-03-26 14:05:42 +00:00
|
|
|
cd "$pkgname"
|
2011-09-03 23:55:43 +00:00
|
|
|
|
2018-03-26 14:05:42 +00:00
|
|
|
./configure \
|
2018-01-10 13:45:42 +00:00
|
|
|
--prefix=/usr \
|
2018-01-11 13:43:39 +00:00
|
|
|
--enable-rfc2553 \
|
2018-03-26 14:05:42 +00:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--sysconfdir=/etc \
|
2018-01-11 13:43:39 +00:00
|
|
|
--without-avahi
|
2011-10-24 14:47:56 +00:00
|
|
|
|
2018-03-26 14:05:42 +00:00
|
|
|
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python
|
2011-09-03 23:55:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-03-26 14:05:42 +00:00
|
|
|
make -C "$pkgname" \
|
|
|
|
DESTDIR="$pkgdir" \
|
|
|
|
INCLUDESERVER_PYTHON=/usr/bin/python \
|
|
|
|
install
|
2012-09-05 12:32:30 +00:00
|
|
|
|
2018-03-26 14:05:42 +00:00
|
|
|
# Configuration
|
|
|
|
install -Dm644 distccd.conf.d "$pkgdir/etc/conf.d/distccd"
|
|
|
|
install -Dm644 distccd.service \
|
2018-01-11 13:43:39 +00:00
|
|
|
"$pkgdir/usr/lib/systemd/system/distccd.service"
|
2018-03-26 14:05:42 +00:00
|
|
|
|
|
|
|
# Desktop shortcut
|
|
|
|
install -Dm644 "$pkgname/gnome/distccmon-gnome-icon.png" \
|
|
|
|
"$pkgdir/usr/share/pixmaps/distccmon-gnome-icon.png"
|
|
|
|
install -Dm644 "$pkgname/gnome/distccmon-gnome.desktop" \
|
|
|
|
"$pkgdir/usr/share/applications/distccmon-gnome.desktop"
|
|
|
|
|
|
|
|
# Symlinks
|
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"
|
2018-03-27 23:55:56 +00:00
|
|
|
# Additional symlinks are needed, see FS#57978
|
|
|
|
ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$bin"
|
2018-01-10 13:45:42 +00:00
|
|
|
done
|
2011-09-03 23:55:43 +00:00
|
|
|
}
|
2018-01-10 13:45:42 +00:00
|
|
|
|
2018-03-26 14:05:42 +00:00
|
|
|
# getver: -u 3 raw.githubusercontent.com/distcc/distcc/master/configure.ac
|
2018-01-11 13:43:39 +00:00
|
|
|
# vim: ts=2 sw=2 et:
|