From 5b8c866a620ef4f4554f16339d77f59645f8e640 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 16 Oct 2011 17:30:28 +0200 Subject: [PATCH] ccache: use relative symlinks. --- srcpkgs/ccache/template | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/srcpkgs/ccache/template b/srcpkgs/ccache/template index dab262d7438..59e20d3cc88 100644 --- a/srcpkgs/ccache/template +++ b/srcpkgs/ccache/template @@ -1,7 +1,7 @@ # Template file for 'ccache' pkgname=ccache version=3.1.6 -revision=1 +revision=2 distfiles="http://samba.org/ftp/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure short_desc="compiler cache" @@ -22,10 +22,9 @@ Add_dependency build zlib-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++ + 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 }