void-packages/srcpkgs/ccache/template
2016-09-29 08:16:03 +02:00

25 lines
823 B
Bash

# Template file for 'ccache'
pkgname=ccache
version=3.3.2
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=d2b2033ac351f24e754b27984fd7250074b9eb776d2f9ef96913f20bd5475877
post_install() {
vmkdir usr/lib/ccache/bin
for f in gcc cc c++ 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 aarch64-linux-gnu \
aarch64-linux-musl; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${x}-${f}
done
done
}