1
0
forked from ports/opt
opt/ccache/Pkgfile

26 lines
512 B
Plaintext
Raw Normal View History

2015-02-12 00:02:22 +11:00
# Description: A fast compiler cache.
2019-07-27 22:23:08 +10:00
# URL: https://ccache.dev/
2014-11-10 23:25:50 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2015-02-12 00:02:22 +11:00
# Depends on: zlib
2018-09-07 19:03:12 +10:00
# Optional: clang-ccache-bindings
2006-02-23 15:26:10 +00:00
name=ccache
2020-06-25 21:02:30 +10:00
version=3.7.10
2011-01-09 12:31:32 +01:00
release=1
2019-05-15 20:07:31 +10:00
source=(https://github.com/$name/$name/releases/download/v$version/$name-$version.tar.xz)
2006-02-23 15:26:10 +00:00
build() {
cd $name-$version
2006-02-23 15:26:10 +00:00
./configure --prefix=/usr
make
make DESTDIR=$PKG install
2018-09-07 19:03:12 +10:00
install -d $PKG/usr/lib/ccache
2015-02-12 00:02:22 +11:00
2018-09-07 19:03:12 +10:00
for c in cc gcc g++ cpp c++; do
2015-02-12 00:02:22 +11:00
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
done
2006-02-23 15:26:10 +00:00
}