PKGBUILDs/alarm/distcc-clang/PKGBUILD
2018-05-06 18:48:07 +00:00

22 lines
562 B
Bash

# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Temporary package to trial building with clang via distcc
pkgname=distcc-clang
pkgver=1
pkgrel=1
pkgdesc='distcc symlinks for clang'
arch=('x86_64')
url='https://github.com/distcc/distcc'
license=('GPL')
depends=('distcc')
package() {
# Symlinks
install -d "$pkgdir/usr/lib/distcc/bin"
for bin in clang clang++; do
ln -sf "/usr/bin/distcc" "$pkgdir/usr/lib/distcc/bin/$bin"
# Additional symlinks are needed, see FS#57978
ln -sf "/usr/bin/distcc" "$pkgdir/usr/lib/distcc/$bin"
done
}