From 6534bc50dc7f7ec2a049cb7fe8a2003f6a72f39e Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 28 Jan 2019 17:05:52 +0000 Subject: ccache: initial inclusion. dep of java8-openjdk --- abs/extra/ccache/PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 abs/extra/ccache/PKGBUILD 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 +# Contributor: Giovanni Scafora +# Contributor: Tom Newsom + +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 +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: -- cgit v0.12