PKGBUILDs/community/distcc/PKGBUILD

83 lines
2.4 KiB
Bash
Raw Normal View History

2018-10-01 12:17:06 +00:00
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2018-01-10 13:45:42 +00:00
# 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
2019-08-22 12:56:57 +00:00
pkgver=3.3.3
2019-11-14 13:56:30 +00:00
pkgrel=2
2019-08-22 12:56:57 +00:00
pkgdesc='Distributed compilation service for C, C++ and Objective-C'
arch=(x86_64)
2018-10-01 12:17:06 +00:00
url='http://distcc.org'
2019-08-22 12:56:57 +00:00
license=(GPL)
depends=(popt)
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'
allow-zero-timeout.patch)
2018-03-26 14:05:42 +00:00
sha256sums=('SKIP'
2018-01-10 13:45:42 +00:00
'43e02b461841ca2976816c244a0eca8b24820ca143f73cc0924403d75a8c012f'
2019-08-22 12:56:57 +00:00
'6d46844f0bebd56541e1a233f9f02a51cc17885120e832bfb37711217403d32f'
2018-01-10 13:45:42 +00:00
'73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
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
}
build() {
2018-03-26 14:05:42 +00:00
cd "$pkgname"
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
2018-03-26 14:05:42 +00:00
make WERROR_CFLAGS= INCLUDESERVER_PYTHON=/usr/bin/python
}
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
}
2018-01-10 13:45:42 +00:00
2018-10-01 12:17:06 +00:00
# getver: distcc.org
2018-01-11 13:43:39 +00:00
# vim: ts=2 sw=2 et: