2023-08-27 17:49:27 +02:00
|
|
|
# Description: Masquerade directory to use distcc with clang
|
2021-02-17 20:54:33 +11:00
|
|
|
# URL: http://distcc.org/
|
2023-08-27 17:49:27 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-02-21 22:12:11 +11:00
|
|
|
# Depends on: clang distcc
|
|
|
|
|
|
|
|
name=clang-distcc-bindings
|
2024-03-07 12:42:26 +01:00
|
|
|
version=18
|
2020-05-02 14:11:33 +10:00
|
|
|
release=1
|
2019-02-21 22:12:11 +11:00
|
|
|
source=()
|
|
|
|
|
|
|
|
build() {
|
2023-08-27 17:49:27 +02:00
|
|
|
install -d $PKG/usr/lib/distcc
|
2019-02-21 22:12:11 +11:00
|
|
|
|
2023-08-27 17:49:27 +02:00
|
|
|
local clang0="$(clang --version | awk -F'[ .]' '/version/ { print $3"."$4 }')"
|
|
|
|
local clang1="${clang0:0:2}"
|
2019-02-21 22:12:11 +11:00
|
|
|
|
2023-08-27 17:49:27 +02:00
|
|
|
if [ -z $clang0 ]; then
|
|
|
|
echo 'Failed to find clang version'
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-02-21 22:12:11 +11:00
|
|
|
|
2023-08-27 17:49:27 +02:00
|
|
|
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++
|
2019-02-21 22:12:11 +11:00
|
|
|
}
|