diff options
Diffstat (limited to 'libraries/libcap-ng/libcap-ng.SlackBuild')
-rw-r--r-- | libraries/libcap-ng/libcap-ng.SlackBuild | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/libraries/libcap-ng/libcap-ng.SlackBuild b/libraries/libcap-ng/libcap-ng.SlackBuild index e0d196b8fa..9c462c6132 100644 --- a/libraries/libcap-ng/libcap-ng.SlackBuild +++ b/libraries/libcap-ng/libcap-ng.SlackBuild @@ -9,10 +9,12 @@ # http://sam.zoy.org/wtfpl/COPYING for more details. PRGNAM=libcap-ng -VERSION=${VERSION:-0.6.4} +VERSION=${VERSION:-0.6.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +WITH_PYTHON=${WITH_PYTHON:-yes} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -55,6 +57,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +if [ ! "$WITH_PYTHON" = "yes" ]; then + do_python_bindings="without-python" +else + do_python_bindings="with-python" +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -64,20 +72,18 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --${do_python_bindings} \ --build=$ARCH-slackware-linux -make - -# This target only works if our kernel-headers match the kernel. -#make check +# This only works if our kernel-headers match the kernel, which is a horrible assumption +# make check +make make install-strip DESTDIR=$PKG # Remove a couple things so they don't get picked up -rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/libcap-ng.la -rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/libcap-ng.a -rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/python?.?/site-packages/_capng.a -rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/python?.?/site-packages/_capng.la +rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/libcap-ng.{a,la} +rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/python?.?/site-packages/_capng.{a,la} find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done |