summaryrefslogtreecommitdiff
path: root/network/aria2/aria2.SlackBuild
diff options
context:
space:
mode:
authorMarco Cecchetti <mrc.ildp@gmail.com>2010-05-13 00:35:35 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:35:35 +0200
commit569e75404ce2e57c5f1bcf9505002bbaae718611 (patch)
treeb18b4b76107d5b6965a520d7fdf6a973490c6d8a /network/aria2/aria2.SlackBuild
parent8747af343d7e368aaac0de42b1eda4277e05bdb9 (diff)
downloadslackbuilds-569e75404ce2e57c5f1bcf9505002bbaae718611.tar.gz
network/aria2: Updated for version 1.8.0
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 4cb4fee37d..5890830c34 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}