clang-distcc-bindings: adopted port
This commit is contained in:
parent
984d6eae20
commit
a2fee9a2e8
@ -1,4 +1,4 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/cHzLuRWwGKRjmRfAE8kDIB98BQ1Rfq5ZaT59VN1VPWPMjnIBcUW1p8U2sLNi16X+8w7pB/l8U3O0TFS9lFs4gI=
|
||||
SHA256 (Pkgfile) = 8fd6eb2206fac08f854c041af1d52fc460b210db206c31f255822c17d7319640
|
||||
RWSE3ohX2g5d/f8w3KJ39AaDzn/T4AcdVuVCQhKUpdvwzzqRy1zlOQcsahPOUryXJmf5QFS/lHYvOPFttomSgfGgveC1XWPwxgY=
|
||||
SHA256 (Pkgfile) = d856e4da84cb11e7cab29ce12879aacc07b0195ebf8730d0f066ffe956383c08
|
||||
SHA256 (.footprint) = aaca81842f53ec45142f44caa95359a7cf6660ee6e020c58d482eee0be56c057
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Description: Masquerade directory to use distcc with clang.
|
||||
# Description: Masquerade directory to use distcc with clang
|
||||
# URL: http://distcc.org/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: clang distcc
|
||||
|
||||
name=clang-distcc-bindings
|
||||
@ -9,18 +9,18 @@ release=1
|
||||
source=()
|
||||
|
||||
build() {
|
||||
install -d $PKG/usr/lib/distcc
|
||||
install -d $PKG/usr/lib/distcc
|
||||
|
||||
local clang0="$(clang --version | awk '/version/ { split($3,i,"."); print i[1]"."i[2] }')"
|
||||
local clang1="${clang0:0:2}"
|
||||
local clang0="$(clang --version | awk -F'[ .]' '/version/ { print $3"."$4 }')"
|
||||
local clang1="${clang0:0:2}"
|
||||
|
||||
if [ -z $clang0 ]; then
|
||||
echo 'Failed to find clang version'
|
||||
exit 1
|
||||
fi
|
||||
if [ -z $clang0 ]; then
|
||||
echo 'Failed to find clang version'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang0
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang1
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang++
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang0
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang1
|
||||
ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang++
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user