blob: 68676c32627dbaee09de28e8232245a4bf55cb3a (
plain)
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
51
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccache
pkgver=3.3.3
pkgrel=0
pkgdesc="A fast C/C++ compiler cache"
url="http://ccache.samba.org/"
arch="all"
license="GPL3+"
makedepends="zlib-dev"
subpackages="$pkgname-doc"
source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
update_config_sub || return 1
}
build () {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$builddir"
install -Dm 755 ccache "$pkgdir"/usr/bin/ccache || return 1
install -Dm 644 ccache.1 "$pkgdir"/usr/share/man/man1/ccache.1 || return 1
mkdir -p "$pkgdir"/usr/lib/ccache/bin
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/cc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/gcc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/g++
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/cpp
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/c++
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-cc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-gcc
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-g++
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-cpp
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-c++
}
md5sums="6918b36301a0b8ffdc96549f609a4ebc ccache-3.3.3.tar.xz"
sha256sums="3b02a745da1cfa9eb438af7147e0fd3545e2f6163de9e5b07da86f58859f04ec ccache-3.3.3.tar.xz"
sha512sums="59652955708c11dc4e2a0d76bc3810de0ce4009b93196d7e6a28ecf3829616d278e7dfedbd715136cd20c81f57d3912682bec8dbcd5ebed5aaf6508520b93587 ccache-3.3.3.tar.xz"
|