# Template file for 'ccache'
pkgname=ccache
version=3.1.8
revision=1
bootstrap=yes
build_style=gnu-configure
makedepends="zlib-devel"
short_desc="A Fast C/C++ Compiler Cache"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://ccache.samba.org"
license="GPL-2"
distfiles="http://samba.org/ftp/$pkgname/$pkgname-$version.tar.bz2"
checksum=b46b5d4b4fd0c0e4e2e9df069d41ded071b73053535ff115e55259e3fcadf3fd
long_desc="
 ccache is a compiler cache. It speeds up recompilation by caching previous
 compilations and detecting when the same compilation is being done again.
 Supported languages are C, C++, Objective-C and Objective-C++."

post_install() {
	vmkdir usr/lib/ccache/bin
	cd ${DESTDIR}/usr/lib/ccache/bin
	for f in cc c++ cpp g++; do
		ln -sf ../../../bin/ccache ${f}
	done
}
