void-packages/srcpkgs/ccache/template

31 lines
908 B
Bash
Raw Normal View History

2011-06-24 17:10:00 +02:00
# Template file for 'ccache'
pkgname=ccache
2015-10-08 23:57:39 +02:00
version=3.2.4
revision=2
2012-08-12 08:49:14 +02:00
bootstrap=yes
build_style=gnu-configure
makedepends="zlib-devel"
2012-08-12 08:49:14 +02:00
short_desc="A Fast C/C++ Compiler Cache"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-08-12 08:49:14 +02:00
homepage="http://ccache.samba.org"
2011-06-24 17:10:00 +02:00
license="GPL-2"
2013-01-07 10:03:31 +01:00
distfiles="http://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.bz2"
2015-10-08 23:57:39 +02:00
checksum=ffeb967edb549e67da0bd5f44f729a2022de9fdde65dfd80d2a7204d7f75332e
2015-08-16 17:29:28 +02:00
post_configure() {
# Fix wrong dependency on a lib
sed -i Makefile \
-e "s;\(ccache\$(EXEEXT): \$(ccache_objs)\).*;\1;"
}
2011-06-24 17:10:00 +02:00
post_install() {
2011-10-16 17:30:28 +02:00
vmkdir usr/lib/ccache/bin
for f in gcc cc c++ g++; do
2013-01-07 10:03:31 +01:00
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
2011-10-16 17:30:28 +02:00
done
2011-06-24 17:10:00 +02:00
}