community/distcc to 3.3.3-4

This commit is contained in:
Kevin Mihelich 2020-01-04 15:09:03 +00:00
parent 78843090b6
commit 640bb1cf9a

View file

@ -2,6 +2,7 @@
# 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
@ -10,13 +11,13 @@
pkgname=distcc
pkgver=3.3.3
pkgrel=2
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 setconf)
makedepends=(git python)
optdepends=(python)
backup=('etc/conf.d/distccd'
'etc/distcc/hosts')
@ -71,10 +72,12 @@ package() {
# Symlinks
install -d "$pkgdir/usr/lib/$pkgname/bin"
for bin in c++ cc cpp g++ gcc; do
ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
# Additional symlinks are needed, see FS#57978
ln -sf "/usr/bin/$pkgname" "$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
}