36 lines
761 B
Bash
36 lines
761 B
Bash
|
pkgname=distcc
|
||
|
pkgver=3.3.5
|
||
|
bad="gmake"
|
||
|
|
||
|
fetch() {
|
||
|
curl -L "https://github.com/distcc/distcc/releases/download/v$pkgver/distcc-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||
|
tar -xf $pkgname-$pkgver.tar.xz
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd $pkgname-$pkgver
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--build=x86_64-unknown-linux-musl \
|
||
|
--host=x86_64-unknown-linux-musl \
|
||
|
--without-libiberty
|
||
|
|
||
|
gmake
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $pkgname-$pkgver
|
||
|
gmake install DESTDIR=$pkgdir
|
||
|
|
||
|
install -d $pkgdir/usr/lib/distcc
|
||
|
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/cc
|
||
|
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/c89
|
||
|
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/c99
|
||
|
ln -sr $pkgdir/usr/bin/distcc $pkgdir/usr/lib/distcc/c++
|
||
|
}
|
||
|
|
||
|
license() {
|
||
|
cd $pkgname-$pkgver
|
||
|
cat COPYING
|
||
|
}
|