summaryrefslogtreecommitdiff
path: root/system/cabextract
diff options
context:
space:
mode:
authorYalla-One <yallaone@gmail.com>2010-05-13 00:39:45 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:39:45 +0200
commitb1932fbddcd03976b3682d0c6a995fca0e7e187e (patch)
treee4fc63f1e83eb82ebc3301d9939ec90bdb5695db /system/cabextract
parentf488907e3a9f6e6239290b1a74343347ce070c12 (diff)
downloadslackbuilds-b1932fbddcd03976b3682d0c6a995fca0e7e187e.tar.gz
system/cabextract: Updated for version 1.2
Diffstat (limited to 'system/cabextract')
-rw-r--r--system/cabextract/cabextract.SlackBuild34
-rw-r--r--system/cabextract/cabextract.info2
2 files changed, 21 insertions, 15 deletions
diff --git a/system/cabextract/cabextract.SlackBuild b/system/cabextract/cabextract.SlackBuild
index ee42046025..f6f016bbfb 100644
--- a/system/cabextract/cabextract.SlackBuild
+++ b/system/cabextract/cabextract.SlackBuild
@@ -27,13 +27,12 @@ VERSION=1.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO"
-
case "$ARCH" in
i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686"
;;
@@ -46,16 +45,16 @@ case "$ARCH" in
x86_64) SLKCFLAGS="-O2 -fPIC"
SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
;;
- athlon-xp) SLKCFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
- ;;
esac
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root.root .
chmod -R a-s,u+rw,go+r-w .
@@ -63,22 +62,27 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--sysconfdir=/etc \
--disable-debug \
- || exit 1
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@@ -89,4 +93,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/cabextract/cabextract.info b/system/cabextract/cabextract.info
index 4e0eeeefed..3dd7872d26 100644
--- a/system/cabextract/cabextract.info
+++ b/system/cabextract/cabextract.info
@@ -3,6 +3,8 @@ VERSION="1.2"
HOMEPAGE="http://www.cabextract.org.uk"
DOWNLOAD="http://www.cabextract.org.uk/cabextract-1.2.tar.gz"
MD5SUM="dc421a690648b503265c82ade84e143e"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="Yalla-One"
EMAIL="yallaone@gmail.com"
APPROVED="rworkman"