aboutsummaryrefslogtreecommitdiff
path: root/network/aria2/aria2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/aria2/aria2.SlackBuild')
-rw-r--r--network/aria2/aria2.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/network/aria2/aria2.SlackBuild b/network/aria2/aria2.SlackBuild
index 4cb4fee37dff6..5890830c343b3 100644
--- a/network/aria2/aria2.SlackBuild
+++ b/network/aria2/aria2.SlackBuild
@@ -3,7 +3,7 @@
# Written by Marco Cecchetti <mrc.ildp@gmail.com>
PRGNAM=${PRGNAM:-aria2}
-VERSION=${VERSION:-1.4.0}
+VERSION=${VERSION:-1.8.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -20,12 +20,16 @@ OUTPUT=${OUTPUT:-/tmp}
[ "$XML" = "libexpat" ] && XMLOUT="--without-libxml2"
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
-fi
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
set -e
rm -rf $PKG
@@ -49,6 +53,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux \
${SLOUT} \
${XMLOUT}
@@ -77,4 +82,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}