aboutsummaryrefslogtreecommitdiff
path: root/network/urlgrabber/urlgrabber.SlackBuild
diff options
context:
space:
mode:
authorJavier Rojas <jerojasro@devnull.li>2010-05-13 00:38:37 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:38:37 +0200
commit04ad2daeeb649c3666390d799712414b4820c42a (patch)
treefbbd59b91d3e7b8c4f8f3ab4aa5d73b4d5790d38 /network/urlgrabber/urlgrabber.SlackBuild
parentb04c43d6b76cdcfa3bd58fcf51f0ee1066ef7403 (diff)
network/urlgrabber: Updated for version 3.1.0
Diffstat (limited to 'network/urlgrabber/urlgrabber.SlackBuild')
-rw-r--r--network/urlgrabber/urlgrabber.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/network/urlgrabber/urlgrabber.SlackBuild b/network/urlgrabber/urlgrabber.SlackBuild
index a326d663270c4..75d4048bd10f7 100644
--- a/network/urlgrabber/urlgrabber.SlackBuild
+++ b/network/urlgrabber/urlgrabber.SlackBuild
@@ -24,14 +24,12 @@
# modified by Javier Rojas to fit urlgrabber
-# Exit on most errors
-set -e
-
PRGNAM=urlgrabber
VERSION=3.1.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -39,12 +37,17 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -70,4 +73,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}