diff options
author | éclairevoyant | 2023-06-26 16:28:53 -0400 |
---|---|---|
committer | éclairevoyant | 2023-06-26 16:28:53 -0400 |
commit | 4592302fffc85e61b6eb1fbe339a90114b3bdfed (patch) | |
tree | c4016b37f3de6d820e4766593dd7382b63222734 | |
parent | c8425555794adfe03fc8d3b2545e0ece8470568a (diff) | |
download | aur-ccache-git.tar.gz |
ccache-git: fix pkgver(); pull improvements from [extra]/ccache
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 58 |
3 files changed, 46 insertions, 35 deletions
@@ -1,20 +1,23 @@ pkgbase = ccache-git - pkgdesc = a fast compiler cache - pkgver = v3.7.1_844_g0789bc26 + pkgdesc = Compiler cache that speeds up recompilation by caching previous compilations + pkgver = 4.8.2.r4.2737d79e pkgrel = 1 url = https://ccache.dev arch = i686 arch = x86_64 license = GPL3 + makedepends = asciidoctor makedepends = cmake makedepends = git - makedepends = asciidoc - depends = zlib - depends = libb2 - provides = ccache + makedepends = perl + depends = gcc-libs + depends = glibc + depends = hiredis + depends = zstd + depends = libzstd.so + provides = ccache=4.8.2 conflicts = ccache source = git+https://github.com/ccache/ccache.git - sha256sums = SKIP + b2sums = SKIP pkgname = ccache-git - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..713f6f80aff8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/* +!/.gitignore +!/.SRCINFO +!/PKGBUILD @@ -1,46 +1,50 @@ +# Maintainer: éclairevoyant +# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Giovanni Scafora <giovanni at archlinux dot org> +# Contributor: Tom Newsom <Jeepster at gmx dot co dot uk> + _pkgname=ccache -pkgname=${_pkgname}-git -pkgver=v3.7.1_1007_gdec7a318 +pkgname="$_pkgname-git" +pkgver=4.8.2.r4.2737d79e pkgrel=1 -pkgdesc="a fast compiler cache" -arch=('i686' 'x86_64') +pkgdesc='Compiler cache that speeds up recompilation by caching previous compilations' +arch=(i686 x86_64) url="https://ccache.dev" -license=('GPL3') -depends=('zlib' 'libb2') -makedepends=('cmake' 'git' 'asciidoc') -conflicts=("${_pkgname}") -provides=("${_pkgname}") +license=(GPL3) +depends=(gcc-libs glibc hiredis zstd libzstd.so) +makedepends=(asciidoctor cmake git perl) +provides=("$_pkgname=${pkgver%%.r*}") +conflicts=("$_pkgname") source=("git+https://github.com/ccache/ccache.git") -sha256sums=('SKIP') +b2sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" - git describe | sed 's/[- ]/_/g' + git -C $_pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g' } build() { - cd ${srcdir}/${_pkgname} - cmake -B build -S . \ - -DCMAKE_BUILD_TYPE='None' \ - -DCMAKE_INSTALL_PREFIX='/usr' \ - -DCMAKE_INSTALL_SYSCONFDIR='/etc' - make -C build - make -C build doc-html - make -C build doc-man-page + cd $_pkgname + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=None \ + -Wno-dev \ + -B build \ + -S . + make VERBOSE=1 -C build } check() { - cd ${srcdir}/${_pkgname} - make -C build check + cd $_pkgname + make VERBOSE=1 check -C build } package() { - cd ${srcdir}/${_pkgname} + cd $_pkgname + + make DESTDIR="${pkgdir}" install -C build + make DESTDIR="${pkgdir}" install -C build/doc - install -Dm 755 build/ccache -t "${pkgdir}/usr/bin" - install -Dm 644 build/doc/ccache.1 -t "${pkgdir}/usr/share/man/man1" - install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html README.md -t "${pkgdir}/usr/share/doc/${_pkgname}" - install -Dm 644 build/doc/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}" + install -Dm 644 doc/*.md doc/*.adoc -t "${pkgdir}/usr/share/doc/${pkgname}" install -d "${pkgdir}/usr/lib/ccache/bin" local _prog |