2018-10-01 12:17:06 +00:00
|
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
2020-09-07 20:58:08 +00:00
|
|
|
# Contributor: John <graysky@archlinux.us>
|
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>
|
|
|
|
|
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
|
2021-05-24 22:27:39 +00:00
|
|
|
pkgver=3.4
|
2022-10-18 23:49:13 +00:00
|
|
|
pkgrel=5
|
|
|
|
_gccver=12.2.0 # Current GCC version, used for symlinks. See FS#69044
|
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)
|
2021-01-13 17:30:16 +00:00
|
|
|
makedepends=(git python gtk3)
|
|
|
|
optdepends=("gcc=$_gccver"
|
|
|
|
"python: for python bindings"
|
|
|
|
"gtk3: for distccmon")
|
2020-09-07 20:58:08 +00:00
|
|
|
backup=(etc/conf.d/distccd
|
|
|
|
etc/distcc/hosts)
|
2021-05-29 20:18:49 +00:00
|
|
|
source=("git+$url?signed#tag=v$pkgver"
|
2020-09-07 20:58:08 +00:00
|
|
|
distccd.conf.d
|
|
|
|
distccd.service
|
|
|
|
sysusers.conf
|
2014-07-07 11:41:06 +00:00
|
|
|
allow-zero-timeout.patch)
|
2021-05-24 22:27:39 +00:00
|
|
|
b2sums=('SKIP'
|
|
|
|
'c48a6daea2cae5e5865c488e612c819e6f9bf4a1b205e2cd264b795de3450d40b0fe05264fbd8a3fe861f03e38d91e7e791ad67e22da5b5d0b43bcb380b8b4c9'
|
|
|
|
'9b6ffc02e9360fd92f7595e96ef2d69b5f6d72acf343009375fa081f86b26f51960b139c4f6e0e3c8befa37eba4894d61351bbfab6386389c262db0cc01a8b8e'
|
|
|
|
'd1b057ce49994ac61e9d5a861c1c770452102300d47a9c396b3272d7f5afbd3fe3e865e6db11c046e73ae3b6886bc8970a10624650731d55132362436904f989'
|
|
|
|
'9fb83627feffba4093ea68f31cdd9257d0626f1c97aff4cd55ab74d02aceabc763e1fc59c35ddc042b61113c081b1f4cc64b8021e7ae8a5883641e7cc488f7ec')
|
2021-05-26 13:56:09 +00:00
|
|
|
validpgpkeys=(30782E2BE4EB9FD5B293D3DA6D100BF096B8A005) # Shawn Landden
|
2020-09-07 20:58:08 +00:00
|
|
|
|
2014-07-07 11:41:06 +00:00
|
|
|
prepare() {
|
2020-12-22 17:42:30 +00:00
|
|
|
cd $pkgname
|
2020-12-21 03:24:57 +00:00
|
|
|
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
|
2014-07-07 11:41:06 +00:00
|
|
|
}
|
2011-09-03 23:55:43 +00:00
|
|
|
|
|
|
|
build() {
|
2021-01-05 14:42:20 +00:00
|
|
|
cd $pkgname
|
2022-10-18 23:49:13 +00:00
|
|
|
|
|
|
|
# ref: https://github.com/distcc/distcc/issues/454#issuecomment-1087865811
|
|
|
|
export CFLAGS+=' -DPY_SSIZE_T_CLEAN -fcommon'
|
|
|
|
|
2018-03-26 14:05:42 +00:00
|
|
|
./configure \
|
2018-01-11 13:43:39 +00:00
|
|
|
--enable-rfc2553 \
|
2018-03-26 14:05:42 +00:00
|
|
|
--mandir=/usr/share/man \
|
2020-09-07 20:58:08 +00:00
|
|
|
--prefix=/usr \
|
2018-03-26 14:05:42 +00:00
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--sysconfdir=/etc \
|
2021-01-13 17:30:16 +00:00
|
|
|
--without-avahi \
|
|
|
|
--with-gtk
|
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() {
|
2020-12-22 17:42:30 +00:00
|
|
|
make -C $pkgname \
|
2018-03-26 14:05:42 +00:00
|
|
|
DESTDIR="$pkgdir" \
|
|
|
|
INCLUDESERVER_PYTHON=/usr/bin/python \
|
|
|
|
install
|
2012-09-05 12:32:30 +00:00
|
|
|
|
2018-03-26 14:05:42 +00:00
|
|
|
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
|
|
|
|
2021-01-13 17:30:16 +00:00
|
|
|
# Package symlinks
|
2020-01-04 15:09:03 +00:00
|
|
|
_targets=(c++ c89 c99 cc clang clang++ cpp g++ gcc)
|
2021-01-13 17:30:16 +00:00
|
|
|
install -d "$pkgdir/usr/lib/$pkgname/bin"
|
2020-01-04 15:09:03 +00:00
|
|
|
for bin in "${_targets[@]}"; do
|
|
|
|
# For whitelist since version 3.3, see FS#57978
|
2020-12-22 17:42:30 +00:00
|
|
|
ln -sf ../../bin/$pkgname "$pkgdir/usr/lib/$pkgname/$bin"
|
2020-01-04 15:09:03 +00:00
|
|
|
# Needed for makepkg to work
|
2020-12-22 17:42:30 +00:00
|
|
|
ln -sf ../../../bin/$pkgname "$pkgdir/usr/lib/$pkgname/bin/$bin"
|
2018-01-10 13:45:42 +00:00
|
|
|
done
|
2020-09-07 20:58:08 +00:00
|
|
|
|
|
|
|
# FS#67629
|
|
|
|
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/distccd.conf"
|
2011-09-03 23:55:43 +00:00
|
|
|
}
|