void-packages/srcpkgs/ccache/template
2017-02-17 23:38:02 +01:00

26 lines
898 B
Bash

# Template file for 'ccache'
pkgname=ccache
version=3.3.4
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="https://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=24f15bf389e38c41548c9c259532187774ec0cb9686c3497bbb75504c8dc404f
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 i686-linux-musl \
mips-linux-musl mipsel-linux-musl mipsel-linux-muslhf; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${x}-${f}
done
done
}