void-packages/srcpkgs/ccache/template
2015-08-16 20:12:05 +02:00

30 lines
912 B
Bash

# Template file for 'ccache'
pkgname=ccache
version=3.2.3
revision=1
bootstrap=yes
build_style=gnu-configure
makedepends="zlib-devel"
short_desc="A Fast C/C++ Compiler Cache"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://ccache.samba.org"
license="GPL-2"
distfiles="http://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=b07165d4949d107d17f2f84b90b52953617bf1abbf249d5cc20636f43337c98c
post_configure() {
# Fix wrong dependency on a lib
sed -i Makefile \
-e "s;\(ccache\$(EXEEXT): \$(ccache_objs)\).*;\1;"
}
post_install() {
vmkdir usr/lib/ccache/bin
for f in gcc cc c++ cpp g++; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${f}
for x in arm-linux-gnueabi arm-linux-gnueabihf armv7l-linux-gnueabihf \
arm-linux-musleabihf armv7l-linux-musleabihf; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${x}-${f}
done
done
}