30 lines
615 B
Plaintext
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.4
|
|
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
|
|
}
|