diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2016-08-20 13:58:16 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2016-08-20 14:04:44 +1000 |
commit | ac5027742ad244559e88d7c907764bf70c233c35 (patch) | |
tree | 04d4562ec5bc8ff64d9db1975b138bf3d4346a75 | |
parent | 1767700c2622bcfa4230f25f7986bac808c79348 (diff) | |
download | opt-ac5027742ad244559e88d7c907764bf70c233c35.tar.gz opt-ac5027742ad244559e88d7c907764bf70c233c35.tar.xz |
ccache: clean up detecting for clang
-rw-r--r-- | ccache/Pkgfile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ccache/Pkgfile b/ccache/Pkgfile index d892d8f00..4c3538e18 100644 --- a/ccache/Pkgfile +++ b/ccache/Pkgfile @@ -3,6 +3,7 @@ # Maintainer: Danny Rawlins, crux at romster dot me # Packager: Tilman Sauerbeck, tilman at crux dot nu # Depends on: zlib +# Optional: clang name=ccache version=3.2.7 @@ -18,10 +19,7 @@ build() { make DESTDIR=$PKG install install -d $PKG/usr/lib/$name - - if [ "$(prt-get isinst clang)" = 'package clang is installed' ]; then - local clang='clang clang++' - fi + prt-get isinst clang >/dev/null && local clang='clang clang++' for c in $clang cc gcc g++ cpp c++; do ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c |