blob: 99b4563e1e766b15737f79086a72909803a3745c (
plain)
1 # Description: A fast compiler cache.
2 # URL: http://ccache.samba.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Tilman Sauerbeck, tilman at crux dot nu
5 # Depends on: zlib
6
7 name=ccache
8 version=3.2.1
9 release=1
10 source=(http://samba.org/ftp/$name/$name-$version.tar.xz)
11
12 build() {
13 cd $name-$version
14
15 ./configure \
16 --prefix=/usr \
17 --mandir=/usr/man
18
19 make
20 make DESTDIR=$PKG install
21
22 install -d $PKG/usr/lib/$name
23
24 if [ "$(prt-get isinst clang)" = 'package clang is installed' ]; then
25 local clang='clang clang++'
26 fi
27
28 for c in $clang cc gcc g++ cpp c++; do
29 ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
30 done
31 }
|