From d03f107336dac471c8b9b99d4f63dae452bbbab8 Mon Sep 17 00:00:00 2001 From: str1ngs Date: Fri, 24 Jun 2011 08:10:00 -0700 Subject: [PATCH] ccache: new package. --- srcpkgs/ccache/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/ccache/template diff --git a/srcpkgs/ccache/template b/srcpkgs/ccache/template new file mode 100644 index 00000000000..11d2f46b327 --- /dev/null +++ b/srcpkgs/ccache/template @@ -0,0 +1,28 @@ +# Template file for 'ccache' +pkgname=ccache +version=3.1.5 +distfiles="http://samba.org/ftp/$pkgname/$pkgname-$version.tar.bz2" +build_style=gnu_configure +short_desc="compiler cache" +maintainer="Mike Rosset " +homepage="http://cache.samba.org" +license="GPL-2" +checksum=aac690d7e452f408d458b11c07ab5bf22055d398b2a010052d3d208670a99c36 +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++." + + +Add_dependency run glibc +Add_dependency build glibc-devel + +post_install() +{ + install -d ${DESTDIR}/usr/lib/ccache/bin + ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/cc + ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/gcc + ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/g++ + ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/cpp + ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/c++ +}