opt/ccache/Pkgfile
2020-07-22 08:54:53 +10:00

26 lines
512 B
Plaintext

# Description: A fast compiler cache.
# URL: https://ccache.dev/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: zlib
# Optional: clang-ccache-bindings
name=ccache
version=3.7.11
release=1
source=(https://github.com/$name/$name/releases/download/v$version/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
install -d $PKG/usr/lib/ccache
for c in cc gcc g++ cpp c++; do
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
done
}