summaryrefslogtreecommitdiff
path: root/clang-distcc-bindings/Pkgfile
blob: fb81cac827f2994489af1d46ef22f217b46c5d63 (plain)
    1 # Description: Masquerade directory to use distcc with clang.
    2 # URL: http://distcc.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: clang distcc
    5 
    6 name=clang-distcc-bindings
    7 version=15
    8 release=1
    9 source=()
   10 
   11 build() {
   12 	install -d $PKG/usr/lib/distcc
   13 
   14 	local clang0="$(clang --version | awk '/version/ { split($3,i,"."); print i[1]"."i[2] }')"
   15 	local clang1="${clang0:0:2}"
   16 
   17 	if [ -z $clang0 ]; then
   18 		echo 'Failed to find clang version'
   19 		exit 1
   20 	fi
   21 
   22 	ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang
   23 	ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang0
   24 	ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang1
   25 	ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang++
   26 }

Generated by cgit