clang-ccache-bindings: initial import

This commit is contained in:
Danny Rawlins 2018-09-07 19:27:30 +10:00
parent 5142949255
commit 89be5e34b2
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,6 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/ccache/
lrwxrwxrwx root/root usr/lib/ccache/clang -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/clang++ -> ../../bin/ccache
lrwxrwxrwx root/root usr/lib/ccache/clang-6.0 -> ../../bin/ccache

View File

@ -0,0 +1,4 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/Rok0+01RjJE0zXat2s56UFDFZAdH0Wn+B6pLfIaBBMDO+/iIXEu2lohoGSaZgFeEJes2hi7pJQjxO7kqHkaWA8=
SHA256 (Pkgfile) = dc927d2617b653fb4478a46fffa028a2e4e7362da22c43674ae964593b0a1781
SHA256 (.footprint) = aa835816201492c0213a41d604e403e5b0a017dbc6817826ec6974132eaa1c13

View File

@ -0,0 +1,25 @@
# Description: Masquerade directory to use ccache with clang.
# URL: http://llvm.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: ccache clang
name=clang-ccache-bindings
version=1
release=1
source=()
build() {
install -d $PKG/usr/lib/ccache
local clang="$(clang++ -v 2>&1 | grep version | sed 's/.*version \([0-9]*.[0-9]*\).[0-9]* .*/\1/g')"
if [ -z $clang ]; then
echo 'Failed to find clang version'
exit 1
fi
ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang
ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang-$clang
ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang++
}