diff options
Diffstat (limited to 'libcap')
-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 } |