opt/ccache/Pkgfile
2016-05-10 21:24:56 +10:00

30 lines
615 B
Plaintext

# Description: A fast compiler cache.
# URL: http://ccache.samba.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: zlib
name=ccache
version=3.2.5
release=1
source=(http://samba.org/ftp/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
install -d $PKG/usr/lib/$name
if [ "$(prt-get isinst clang)" = 'package clang is installed' ]; then
local clang='clang clang++'
fi
for c in $clang cc gcc g++ cpp c++; do
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
done
}