diff options
Diffstat (limited to 'ccache/Pkgfile')
-rw-r--r-- | ccache/Pkgfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ccache/Pkgfile b/ccache/Pkgfile new file mode 100644 index 000000000..da023b580 --- /dev/null +++ b/ccache/Pkgfile @@ -0,0 +1,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 +} |