[arch-commits] Commit in ccache/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Wed Jun 7 14:06:32 UTC 2017


    Date: Wednesday, June 7, 2017 @ 14:06:31
  Author: foutrelis
Revision: 235332

upgpkg: ccache 3.3.4-2

- Add clang/clang++ symlinks
- Remove cpp symlink (not sure if it works; other distros don't ship it)
- Don't install a ${CHOST}-cc symlink as gcc doesn't provide that in /usr/bin

Modified:
  ccache/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-07 10:17:05 UTC (rev 235331)
+++ PKGBUILD	2017-06-07 14:06:31 UTC (rev 235332)
@@ -4,7 +4,7 @@
 
 pkgname=ccache
 pkgver=3.3.4
-pkgrel=1
+pkgrel=2
 pkgdesc="A compiler cache"
 arch=('i686' 'x86_64')
 url="http://ccache.samba.org/"
@@ -28,14 +28,13 @@
   install -Dm 644 ccache.1 ${pkgdir}/usr/share/man/man1/ccache.1
 
   install -d ${pkgdir}/usr/lib/ccache/bin
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/cc 
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/gcc
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/g++
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/cpp
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/c++
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/${CHOST}-cc
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/${CHOST}-gcc
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/${CHOST}-g++
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/${CHOST}-cpp
-  ln -sf /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/${CHOST}-c++
+
+  local _prog
+  for _prog in gcc g++ c++; do
+    ln -s /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/$_prog
+    ln -s /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/${CHOST}-$_prog
+  done
+  for _prog in cc clang clang++; do
+    ln -s /usr/bin/ccache ${pkgdir}/usr/lib/ccache/bin/$_prog
+  done
 }



More information about the arch-commits mailing list