summaryrefslogtreecommitdiffstats
path: root/ccache/Pkgfile
blob: da023b58036133432621742675b1b4bdef915f60 (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
# Description: Cache de compilation C/C++
# URL: http://ccache.samba.org/
# Packager: piernov <piernov@piernov.org>
# Maintainer: piernov <piernov@piernov.org>

name=ccache
version=3.1.7
release=1
source=(http://samba.org/ftp/$name/$name-$version.tar.xz
	ccache.sh)

build() {
	cd $name-$version
	./configure --prefix=/usr
	make
	make DESTDIR=$PKG install

	mkdir -p $PKG/usr/lib/ccache/bin
	cd $PKG/usr/lib/ccache/bin
	for f in cc gcc c++ g++; do ln -s ../../bin/ccache $f; done

	install -D -m755 $SRC/ccache.sh $PKG/etc/profile.d/ccache.sh

	install -d -m775 $PKG/var/lib/ccache
	chmod g+s $PKG/var/lib/ccache
	chown :ccache $PKG/var/lib/ccache
}