summaryrefslogtreecommitdiffstats
path: root/abs/extra/ccache/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/ccache/PKGBUILD')
-rw-r--r--abs/extra/ccache/PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/abs/extra/ccache/PKGBUILD b/abs/extra/ccache/PKGBUILD
new file mode 100644
index 0000000..9928463
--- /dev/null
+++ b/abs/extra/ccache/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=ccache
+pkgver=3.6
+pkgrel=1
+pkgdesc='Compiler cache that speeds up recompilation by caching previous compilations'
+url='https://ccache.samba.org/'
+arch=('x86_64')
+license=('GPL3')
+depends=('zlib')
+source=(https://www.samba.org/ftp/ccache/ccache-${pkgver}.tar.xz{,.asc})
+validpgpkeys=('5A939A71A46792CF57866A51996DDA075594ADB8') # Joel Rosdahl <joel@rosdahl.net>
+sha256sums=('a6b129576328fcefad00cb72035bc87bc98b6a76aec0f4b59bed76d67a399b1f'
+ 'SKIP')
+sha512sums=('13ce4c9084983ce77617cf005235987715cd6b630dac13a17cb9badce24aab71bff505e63da4206878e32d337cc674f05fbf78540711ec5b33a0b8384c47fa0d'
+ 'SKIP')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ make
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ install -Dm 755 ccache -t "${pkgdir}/usr/bin"
+ install -Dm 644 doc/ccache.1 -t "${pkgdir}/usr/share/man/man1"
+ install -Dm 644 doc/{AUTHORS,MANUAL,NEWS}.adoc README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+ install -d "${pkgdir}/usr/lib/ccache/bin"
+ 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
+}
+
+# vim: ts=2 sw=2 et: