mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
ccache: use relative symlinks.
This commit is contained in:
parent
d4f19730ba
commit
5b8c866a62
1 changed files with 6 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ccache'
|
# Template file for 'ccache'
|
||||||
pkgname=ccache
|
pkgname=ccache
|
||||||
version=3.1.6
|
version=3.1.6
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="http://samba.org/ftp/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="http://samba.org/ftp/$pkgname/$pkgname-$version.tar.bz2"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
short_desc="compiler cache"
|
short_desc="compiler cache"
|
||||||
|
@ -22,10 +22,9 @@ Add_dependency build zlib-devel
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
install -d ${DESTDIR}/usr/lib/ccache/bin
|
vmkdir usr/lib/ccache/bin
|
||||||
ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/cc
|
cd ${DESTDIR}/usr/lib/ccache/bin
|
||||||
ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/gcc
|
for f in cc c++ cpp g++; do
|
||||||
ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/g++
|
ln -sf ../../../bin/ccache ${f}
|
||||||
ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/cpp
|
done
|
||||||
ln -sf /usr/bin/ccache $DESTDIR/usr/lib/ccache/bin/c++
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue