mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/distcc to 3.3.3-9
This commit is contained in:
parent
540944f07d
commit
f92d45546d
1 changed files with 8 additions and 7 deletions
|
@ -11,14 +11,15 @@
|
|||
|
||||
pkgname=distcc
|
||||
pkgver=3.3.3
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
_gccver=10.2.0 # Current GCC version, used for symlinks. See FS#69044
|
||||
pkgdesc='Distributed compilation service for C, C++ and Objective-C'
|
||||
arch=(x86_64)
|
||||
url='https://github.com/distcc/distcc'
|
||||
license=(GPL)
|
||||
depends=(popt)
|
||||
makedepends=(git python)
|
||||
optdepends=(python)
|
||||
optdepends=("gcc=$_gccver" python)
|
||||
backup=(etc/conf.d/distccd
|
||||
etc/distcc/hosts)
|
||||
source=("git+$url#commit=4cde9bcfbda589abd842e3bbc652ce369085eaae" # tag: v3.3.3
|
||||
|
@ -33,12 +34,12 @@ sha256sums=('SKIP'
|
|||
'73ac95393ee94bcb28f49499e8eec61bfd29a7de38889eaebd237fbbcba6e2c6')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
cd $pkgname
|
||||
patch -p1 -i ../allow-zero-timeout.patch
|
||||
./autogen.sh
|
||||
sed -i 's/ install-gnome-data//g' Makefile.in
|
||||
# FS#66418, support Python 3.9
|
||||
find . -name "*.py" -type f -exec sed -i 's/time.clock()/time.perf_counter()/g' {} \;
|
||||
find . -name "*.py" -type f -exec sed -i 's/e.clock(/e.perf_counter(/g' {} \;
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -56,7 +57,7 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
make -C "$pkgname" \
|
||||
make -C $pkgname \
|
||||
DESTDIR="$pkgdir" \
|
||||
INCLUDESERVER_PYTHON=/usr/bin/python \
|
||||
install
|
||||
|
@ -71,9 +72,9 @@ package() {
|
|||
_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"
|
||||
ln -sf ../../bin/$pkgname "$pkgdir/usr/lib/$pkgname/$bin"
|
||||
# Needed for makepkg to work
|
||||
ln -sf "../../../bin/$pkgname" "$pkgdir/usr/lib/$pkgname/bin/$bin"
|
||||
ln -sf ../../../bin/$pkgname "$pkgdir/usr/lib/$pkgname/bin/$bin"
|
||||
done
|
||||
|
||||
# FS#67629
|
||||
|
|
Loading…
Reference in a new issue