void-packages/srcpkgs/ccache/template
Jürgen Buchmüller e514a9716d
ccache: update to 3.5.1a
Upstream fixed the bug in the configure script.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-01-03 21:42:36 +01:00

28 lines
1 KiB
Bash

# Template file for 'ccache'
pkgname=ccache
version=3.5.1a
revision=1
wrksrc=${pkgname}-${version%a}
bootstrap=yes
build_style=gnu-configure
makedepends="zlib-devel"
short_desc="A Fast C/C++ Compiler Cache"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://ccache.samba.org/"
changelog="https://ccache.samba.org/news.html"
license="GPL-3.0-or-later"
distfiles="https://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=0baea2c5bc4169ed3dad1f895e6d279323c5b8d3c9f0209998fe6da4601d0701
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; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${x}-${f}
done
done
}