Date: Thursday, October 27, 2022 @ 02:59:26
Author: blakkheim
Revision: 1338024
archrelease: copy trunk to community-testing-x86_64
Added:
ccache/repos/community-testing-x86_64/
ccache/repos/community-testing-x86_64/PKGBUILD
(from rev 1338023, ccache/trunk/PKGBUILD)
ccache/repos/community-testing-x86_64/keys/
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: ccache/repos/community-testing-x86_64/PKGBUILD (from rev 1338023,
ccache/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-10-27 02:59:26 UTC (rev 1338024)
@@ -0,0 +1,56 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Giovanni Scafora <[email protected]>
+# Contributor: Tom Newsom <[email protected]>
+
+pkgname=ccache
+pkgver=4.7.1
+pkgrel=1
+pkgdesc='Compiler cache that speeds up recompilation by caching previous
compilations'
+url='https://ccache.dev/'
+arch=('x86_64')
+license=('GPL3')
+depends=('glibc' 'gcc-libs' 'hiredis' 'zstd' 'libzstd.so')
+makedepends=('cmake' 'asciidoctor' 'perl')
+source=(https://github.com/ccache/ccache/releases/download/v${pkgver}/ccache-${pkgver}.tar.xz{,.asc})
+validpgpkeys=('5A939A71A46792CF57866A51996DDA075594ADB8') # Joel Rosdahl
<[email protected]>
+sha512sums=('9a17f550e9a70067c55405a0832769cf367e96b21256631f9b0e638574f2c4c90106be0fcef04e868cf4b069668fe09f13cf71539e9f85752f7869da6a9abd0a'
+ 'SKIP')
+b2sums=('0d96b7d7739329cb86f749cac756998af648f512c2be0a88b35cda8dcc1160a2eb37a02e6bfde34810451b66bb99b56bc91ad64d67c8305c7af620a2075464b7'
+ 'SKIP')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -Wno-dev \
+ -B build \
+ -S .
+ make VERBOSE=1 -C build
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ make VERBOSE=1 check -C build
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make DESTDIR="${pkgdir}" install -C build
+ make DESTDIR="${pkgdir}" install -C build/doc
+
+ install -Dm 644 doc/*.md doc/*.adoc -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: