PKGBUILDs/community/distcc/PKGBUILD
2020-01-04 15:26:01 +00:00

83 lines
2.4 KiB
Bash

# 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>
# Contributor: John <graysky@archlinux.us>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added --without-avahi to configure
# - removed gtk2 from deps and --with-gtk from configure
# - patch to allow zero timeout (INT_MAX time to complete)
pkgname=distcc
pkgver=3.3.3
pkgrel=4
pkgdesc='Distributed compilation service for C, C++ and Objective-C'
arch=(x86_64)
url='http://distcc.org'
license=(GPL)
depends=(popt)
makedepends=(git python)
optdepends=(python)
backup=('etc/conf.d/distccd'
'etc/distcc/hosts')
source=("git+https://github.com/distcc/distcc#tag=v$pkgver"
'distccd.conf.d'
'distccd.service'
allow-zero-timeout.patch)
sha256sums=('SKIP'
'43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
'6d46844f0bebd56541e1a233f9f02a51cc17885120e832bfb37711217403d32f'
'73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
prepare() {
cd "$pkgname"
patch -p1 -i ../allow-zero-timeout.patch
./autogen.sh
sed -i 's/ install-gnome-data//g' Makefile.in
}
build() {
cd "$pkgname"
./configure \
--prefix=/usr \
--enable-rfc2553 \
--mandir=/usr/share/man \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--without-avahi
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python
}
package() {
make -C "$pkgname" \
DESTDIR="$pkgdir" \
INCLUDESERVER_PYTHON=/usr/bin/python \
install
# Configuration
install -Dm644 distccd.conf.d "$pkgdir/etc/conf.d/distccd"
install -Dm644 distccd.service \
"$pkgdir/usr/lib/systemd/system/distccd.service"
# 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
install -d "$pkgdir/usr/lib/$pkgname/bin"
_targets=(c++ c89 c99 cc clang clang++ cpp g++ gcc)
for bin in "${_targets[@]}"; do
# For whitelist since version 3.3, see FS#57978
ln -sf "../../bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$bin"
# Needed for makepkg to work
ln -sf "../../../bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
done
}
# getver: distcc.org
# vim: ts=2 sw=2 et: