void-packages/srcpkgs/ccache/template
Jürgen Buchmüller 2655d6578d
ccache: update to 3.7.5
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-10-23 22:05:08 +02:00

37 lines
1.3 KiB
Bash

# Template file for 'ccache'
pkgname=ccache
version=3.7.5
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="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://ccache.samba.org/"
changelog="https://ccache.samba.org/news.html"
distfiles="https://github.com/ccache/ccache/releases/download/v${version}/${pkgname}-${version}.tar.xz"
checksum=e51c611a3da865754cb0ff1ddd95bd7a6acac603576c0bd39583f8cc30af28d2
post_install() {
vmkdir usr/lib/ccache/bin
# clang
for f in clang clang++; do
ln -sfr ${DESTDIR}/usr/bin/ccache ${DESTDIR}/usr/lib/ccache/bin/${f}
done
# gcc
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 \
powerpc-linux-gnu powerpc-linux-musl \
powerpc64-linux-gnu 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
}