summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2018-01-23 14:30:19 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-27 07:43:52 +0700
commitc4295dcba60094e7dbb1f0139c3add6f3a9ac775 (patch)
treee137581a94b2f7e7a8828df2f1aa154a6a917e14 /games
parent217af619cac6afb4ac6f7b63d78efac273b79a08 (diff)
downloadslackbuilds-c4295dcba60094e7dbb1f0139c3add6f3a9ac775.tar.gz
slackbuilds-c4295dcba60094e7dbb1f0139c3add6f3a9ac775.tar.xz
games/steem: Add 64-bit support.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games')
-rw-r--r--games/steem/steem.SlackBuild24
-rw-r--r--games/steem/steem.info2
2 files changed, 20 insertions, 6 deletions
diff --git a/games/steem/steem.SlackBuild b/games/steem/steem.SlackBuild
index ff2595127a..1ec6aca05c 100644
--- a/games/steem/steem.SlackBuild
+++ b/games/steem/steem.SlackBuild
@@ -1,11 +1,18 @@
#!/bin/sh
-# Slackware build script for xsteem
+# Slackware build script for steem
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20180123 bkw:
+# - BUILD=3
+# - 4 years now and open source steem still fails to build.
+# - Allow building a (fake) x86_64 package on 64-bit, since the
+# binary is fully static and runs fine on 64-bit. This is
+# how it should have been from day one, sorry about that.
+
# 20141112 bkw:
# - binary in /usr/games, not /usr/bin
# - rewrite man page as pod, move to man6
@@ -16,11 +23,18 @@
PRGNAM=steem
VERSION=${VERSION:-3.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
-# Binary-only package, hard-coded ARCH
-ARCH=i486
+# Binary-only package, ARCH is a lie, but set it to
+# what tools like sbopkg will expect.
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -37,7 +51,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-tar xvf $CWD/x${PRGNAM}_v${SRCVER}-${ARCH}.tar.gz
+tar xvf $CWD/x${PRGNAM}_v${SRCVER}-i486.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/games/steem/steem.info b/games/steem/steem.info
index 4457f58b8e..b2880d71bd 100644
--- a/games/steem/steem.info
+++ b/games/steem/steem.info
@@ -5,7 +5,7 @@ DOWNLOAD="http://steem.atari.st/xsteem_v3_2-i486.tar.gz \
http://steem.atari.st/tos_uk.zip"
MD5SUM="7beb9c1faf78ffbd7e50ebf13dc991af \
51778c08eaabe70020b30bf87b04ec7f"
-DOWNLOAD_x86_64="UNTESTED"
+DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"