aboutsummaryrefslogtreecommitdiff
path: root/network/slimjet/slimjet.SlackBuild
diff options
context:
space:
mode:
authorskaendo <skaendo at excite dot com>2017-04-27 06:50:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-27 06:50:25 +0700
commitb6966ae925aa649c67451631dfcae0ed55dbb24a (patch)
tree1c1076a2ae29269656ba00f0eed677c28de1ea0f /network/slimjet/slimjet.SlackBuild
parent4548dc3b8a11ff1b63d09115b56231ca49cbfe03 (diff)
network/slimjet: Updated for version 14.0.2.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/slimjet/slimjet.SlackBuild')
-rw-r--r--network/slimjet/slimjet.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/network/slimjet/slimjet.SlackBuild b/network/slimjet/slimjet.SlackBuild
index ca6b448ed844..1fe4cfde01de 100644
--- a/network/slimjet/slimjet.SlackBuild
+++ b/network/slimjet/slimjet.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for slimjet
-# Copyright 2017 Ed Ender <skaendo at excite dot com>
+# Copyright 2017 skaendo <skaendo at excite dot com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slimjet
-VERSION=${VERSION:-13.0.9.0}
+VERSION=${VERSION:-14.0.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,13 +39,22 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+ SRCARCH=i386
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
SRCARCH=i386
elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
SRCARCH=amd64
else
- echo "$ARCH is not supported."
- exit 1
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ SRCARCH=i386
fi
set -e
@@ -103,12 +112,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a license.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
+cat $CWD/README > $PKG/install/README
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}