summaryrefslogtreecommitdiff
path: root/system/dtach/dtach.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/dtach/dtach.SlackBuild')
-rw-r--r--system/dtach/dtach.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/system/dtach/dtach.SlackBuild b/system/dtach/dtach.SlackBuild
index 7c1c6ca2df..f0dd312245 100644
--- a/system/dtach/dtach.SlackBuild
+++ b/system/dtach/dtach.SlackBuild
@@ -5,9 +5,9 @@
# Released under the WTFPL
PRGNAM=dtach
-VERSION=0.8
+VERSION=${VERSION:-0.8}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -17,8 +17,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
@@ -50,4 +55,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}