diff options
author | Lukc <lukc@upyum.com> | 2011-01-08 17:02:51 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2011-01-08 17:02:51 +0100 |
commit | 0e9d94588a7865e7f3434750671bd6100706f063 (patch) | |
tree | 414d6c5ff43062d56d24885a89060eb361b89517 /libcap/Pkgfile | |
parent | 6aeb1a36bfffc8fdfc2fc15e1edaf9064f4f9b80 (diff) | |
download | base-0e9d94588a7865e7f3434750671bd6100706f063.tar.gz base-0e9d94588a7865e7f3434750671bd6100706f063.tar.bz2 base-0e9d94588a7865e7f3434750671bd6100706f063.tar.xz base-0e9d94588a7865e7f3434750671bd6100706f063.zip |
Correction à cause de cet enfoiré de développeur de pkg++ qui casse toujours tout. :@
Diffstat (limited to 'libcap/Pkgfile')
-rw-r--r-- | libcap/Pkgfile | 11 |
1 files changed, 6 insertions, 5 deletions
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 } |