blob: 17a8892c199e8e78e4896157af4efa7c0db94736 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccache
pkgver=3.2.2
pkgrel=0
pkgdesc="A fast C/C++ compiler cache"
url="http://ccache.samba.org/"
arch="all"
license="GPL3+"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build () {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| 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="035cf49c746d18ebcb4dc377b69f6628 ccache-3.2.2.tar.gz"
sha256sums="5d1c719c7dfe8d0dffbb4aea3ab5a67b602b065219e1f8ba7bd9298915966587 ccache-3.2.2.tar.gz"
sha512sums="f003c0f2f970e7b09c403b61bc6e9de7b74009dbd4ea62ba1a6cff90240d6cd8f4e41ffe690dec6274d00504d966bbe0af5bfe4c60e57e032e3493a7ea9ceb7b ccache-3.2.2.tar.gz"
|