void-packages/srcpkgs/ccache/template
2019-01-15 02:44:15 -02:00

30 lines
1.1 KiB
Bash

# Template file for 'ccache'
pkgname=ccache
version=3.6
revision=1
bootstrap=yes
build_style=gnu-configure
make_check_args="CC=gcc"
makedepends="zlib-devel"
checkdepends="perl"
short_desc="Fast C/C++ Compiler Cache"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://ccache.samba.org/"
changelog="https://ccache.samba.org/news.html"
distfiles="https://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=a6b129576328fcefad00cb72035bc87bc98b6a76aec0f4b59bed76d67a399b1f
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 \
i686-pc-linux-gnu aarch64-linux-musl i686-linux-musl \
mips-linux-musl mips-linux-muslhf mipsel-linux-musl mipsel-linux-muslhf \
powerpc64-linux-musl powerpc64le-linux-musl powerpc64le-linux-gnu; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${x}-${f}
done
done
}