From 0e9d94588a7865e7f3434750671bd6100706f063 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sat, 8 Jan 2011 17:02:51 +0100 Subject: Correction à cause de cet enfoiré de développeur de pkg++ qui casse toujours tout. :@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libcap/Pkgfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libcap') diff --git a/libcap/Pkgfile b/libcap/Pkgfile index a623ec6..f904c8a 100644 --- a/libcap/Pkgfile +++ b/libcap/Pkgfile @@ -11,11 +11,12 @@ source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$ build () { cd libcap-$version; - sed -i '/^CFLAGS :=/s/:/\?/' Make.Rules; + sed -i -e '/^CFLAGS :=/s/:/\?/' Make.Rules; + sed -i -e '/^CC .=/s/.*/CC = '"${CHOST:+$CHOST-}gcc"'/' Make.Rules; make; - make DESTDIR=$PKG man_prefix=$mandir install; - install -d $PKG/usr/lib; - mv $PKG/lib/libcap.a $PKG/usr/lib; + make ${CHOST:+CC=$CHOST-gcc} DESTDIR=$PKG man_prefix=$mandir install; + install -d $PKG$libdir; + mv $PKG/lib/libcap.a $PKG$libdir; rm $PKG/lib/libcap.so; - ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so + ln -s ../../lib/libcap.so.$version $PKG$libdir/libcap.so } -- cgit v1.2.3-70-g09d2