summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/nload/nload.SlackBuild12
-rw-r--r--network/nload/nload.info4
2 files changed, 12 insertions, 4 deletions
diff --git a/network/nload/nload.SlackBuild b/network/nload/nload.SlackBuild
index cf7178febf..bf38a1b77c 100644
--- a/network/nload/nload.SlackBuild
+++ b/network/nload/nload.SlackBuild
@@ -18,10 +18,13 @@ 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 # Exit on most errors
@@ -39,6 +42,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -49,8 +53,10 @@ 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
)
( cd $PKG/usr/man || exit 1
@@ -68,4 +74,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/network/nload/nload.info b/network/nload/nload.info
index 923c943dd6..7d781af727 100644
--- a/network/nload/nload.info
+++ b/network/nload/nload.info
@@ -2,7 +2,9 @@ PRGNAM="nload"
VERSION="0.7.2"
HOMEPAGE="http://sourceforge.net/projects/nload/"
DOWNLOAD="http://downloads.sourceforge.net/nload/nload-0.7.2.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="5b851ecf898edcd1f465946745e95eb6"
-AUTHOR="Michales Michaloudes"
+MD5SUM_x86_64=""
+MAINTAINER="Michales Michaloudes"
EMAIL="korgie_erase_this_and_this@gmail.com"
APPROVED="rworkman"