28 lines
592 B
Plaintext
28 lines
592 B
Plaintext
# Description: A fast compiler cache.
|
|
# URL: https://ccache.samba.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Tilman Sauerbeck, tilman at crux dot nu
|
|
# Depends on: zlib
|
|
# Optional: clang
|
|
|
|
name=ccache
|
|
version=3.3.3
|
|
release=1
|
|
source=(https://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
|
|
prt-get isinst clang >/dev/null && local clang='clang clang++'
|
|
|
|
for c in $clang cc gcc g++ cpp c++; do
|
|
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
|
|
done
|
|
}
|