blob: 4bca128ec323962bfa07228eb0de07cd74f50aeb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# 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.6
pkgrel=0
pkgdesc="A fast C/C++ compiler cache"
url="https://ccache.dev/"
arch="all"
license="GPL-3.0+"
depends=""
checkdepends="bash perl"
makedepends="zlib-dev"
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="c92a699b9761bbbde1666a9bc2718070a5beb24f7054d91226790c7903fe2e26a02d0782822bc811aaffcd88df3cd3e011a19061eb69569ed7140765cef8d6ba ccache-3.7.6.tar.xz"
|