blob: 4dfbcdec6dd85e7367a63859da6317042f61ca78 (
plain) (
tree)
|
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=ccache
pkgver=3.7.2
pkgrel=0
pkgdesc="A fast C/C++ compiler cache"
url="https://ccache.dev/"
arch="all"
license="GPL-3.0+"
makedepends="zlib-dev"
checkdepends="bash perl"
subpackages="$pkgname-doc"
source="https://github.com/ccache/ccache/releases/download/v$pkgver/$pkgname-$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="3290f0609c27a2f063e632392be01ef163273115700f87a6d2954fcfd52fcc14bf66fc147ecbd2b692258317e113bf8be9f7efdf377560e2e8d9dd67cef58147 ccache-3.7.2.tar.xz"
|