summaryrefslogtreecommitdiffstats
path: root/libraries/libtar/libtar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libtar/libtar.SlackBuild')
-rw-r--r--libraries/libtar/libtar.SlackBuild27
1 files changed, 18 insertions, 9 deletions
diff --git a/libraries/libtar/libtar.SlackBuild b/libraries/libtar/libtar.SlackBuild
index d06d1c64a1..bf1f01331e 100644
--- a/libraries/libtar/libtar.SlackBuild
+++ b/libraries/libtar/libtar.SlackBuild
@@ -2,6 +2,8 @@
# Slackware build script for libtar
+# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
+
# Copyright 2009 David Woodfall <dave@unrealize.co.uk>
# All rights reserved.
#
@@ -27,7 +29,8 @@
PRGNAM=libtar
-VERSION=${VERSION:-1.2.11}
+VERSION=${VERSION:-1.2.20}
+SRCVERSION=${SRCVERSION:-0907a9034eaf2a57e8e4a9439f793f3f05d446cd}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,16 +66,21 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM
+if [ -e $CWD/$SRCVERSION.tar.gz ]; then
+ tar xvf $CWD/$SRCVERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
+fi
+cd $PRGNAM
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+autoreconf -vif
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -81,12 +89,13 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --disable-static \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;