# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=ccache pkgver=3.7.7 _pkgver=$pkgver pkgrel=0 pkgdesc="A fast C/C++ compiler cache" url="https://ccache.dev/" arch="all" license="GPL-3.0-or-later" makedepends="zlib-dev" checkdepends="bash perl" subpackages="$pkgname-doc" source="https://github.com/ccache/ccache/releases/download/v$pkgver/ccache-$pkgver.tar.xz" prepare() { default_prepare update_config_sub } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { make test } package() { install -Dm 755 ccache "$pkgdir"/usr/bin/ccache install -Dm 644 doc/ccache.1 "$pkgdir"/usr/share/man/man1/ccache.1 local link= mkdir -p "$pkgdir"/usr/lib/ccache/bin for link in cc gcc g++ cpp c++ $CHOST-cc $CHOST-gcc \ $CHOST-g++ $CHOST-cpp $CHOST-c++; do ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/$link done } sha512sums="f93380aeb45e815964abc3b62f1963abafe22e0c6a7b61d039e710c7f935221e02678e21af65add4fd59fd5a141824ab95f4a7afc8dd557de36737c365cab816 ccache-3.7.7.tar.xz"