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>
|
2011-09-03 23:55:43 +00:00
|
|
|
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
|
2020-01-04 15:09:03 +00:00
|
|
|
# Contributor: John <graysky@archlinux.us>
|
2011-09-03 23:55:43 +00:00
|
|
|
|
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
|
2019-08-22 12:56:57 +00:00
|
|
|
pkgver=3.3.3
|
2020-04-28 23:21:25 +00:00
|
|
|
pkgrel=5
|
2019-08-22 12:56:57 +00:00
|
|
|
pkgdesc='Distributed compilation service for C, C++ and Objective-C'
|
|
|
|
arch=(x86_64)
|
2020-04-28 23:21:25 +00:00
|
|
|
url='https://github.com/distcc/distcc'
|
2019-08-22 12:56:57 +00:00
|
|
|
license=(GPL)
|
|
|
|
depends=(popt)
|
2020-01-04 15:09:03 +00:00
|
|
|
makedepends=(git python)
|
2019-08-22 12:56:57 +00:00
|
|
|
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')
|
2020-04-28 23:21:25 +00:00
|
|
|
source=("git+$url#commit=4cde9bcfbda589abd842e3bbc652ce369085eaae" # tag: v3.3.3
|
2018-03-26 14:05:42 +00:00
|
|
|
'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'
|
2019-08-22 12:56:57 +00:00
|
|
|
'6d46844f0bebd56541e1a233f9f02a51cc17885120e832bfb37711217403d32f'
|
2018-01-10 13:45:42 +00:00
|
|
|
'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
|
|
|
sed -i 's/ install-gnome-data//g' Makefile.in
|
2020-04-28 23:21:25 +00:00
|
|
|
|
|
|
|
# FS#66418, support Python 3.9
|
|
|
|
find . -name "*.py" -type f -exec sed -i 's/time.clock()/time.perf_counter()/g' {} \;
|
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
|
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"
|
2020-01-04 15:09:03 +00:00
|
|
|
_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"
|
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-10-01 12:17:06 +00:00
|
|
|
# getver: distcc.org
|
2018-01-11 13:43:39 +00:00
|
|
|
# vim: ts=2 sw=2 et:
|