![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit ca3ee0060da0af36d3818e46860a69cce59869ab Author: Tim Biermann <tbier@posteo.de> Date: Sun Aug 27 17:49:40 2023 +0200 clang-ccache-bindings: adopted port diff --git a/clang-ccache-bindings/.signature b/clang-ccache-bindings/.signature index 13ae6f950..c9e06b9a6 100644 --- a/clang-ccache-bindings/.signature +++ b/clang-ccache-bindings/.signature @@ -1,4 +1,4 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/dd3vYMGQ1TdJ7hdZP8lgWaoH3xJrh8rwKy1Vq6nRAMTppgKsad+v/fcBLuoFVgoCZ+XZMTo/mHE43RoefKA8wo= -SHA256 (Pkgfile) = f2fea96e246b3c15af5d96d15bf782fb9a6e618fa53583596f3e709bb7209e06 +RWSE3ohX2g5d/UqlEqAYRHrU78e8WFzuth4lLOZZQXpWwKU6aoqRkYEEPNz3924hck44BJBfMh6vzXzFSZFm7cpWYeyE9V5oqAg= +SHA256 (Pkgfile) = 43f8bc37dd9c59d867994c58e4bceb9843c9214983a0c95dc7c9ca051b871f55 SHA256 (.footprint) = 1482ea492a58929c2711655eee832c8150f5ae540a8203e21730c873e34848be diff --git a/clang-ccache-bindings/Pkgfile b/clang-ccache-bindings/Pkgfile index 43efa649b..c21c35a7d 100644 --- a/clang-ccache-bindings/Pkgfile +++ b/clang-ccache-bindings/Pkgfile @@ -1,6 +1,6 @@ -# Description: Masquerade directory to use ccache with clang. +# Description: Masquerade directory to use ccache with clang # URL: https://ccache.dev/ -# Maintainer: Danny Rawlins, crux at romster dot me +# Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: ccache clang name=clang-ccache-bindings @@ -9,18 +9,18 @@ release=1 source=() build() { - install -d $PKG/usr/lib/ccache + install -d $PKG/usr/lib/ccache - 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/ccache $PKG/usr/lib/ccache/clang - ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang-$clang0 - ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang-$clang1 - ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang++ + ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang + ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang-$clang0 + ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang-$clang1 + ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang++ }