From c4295dcba60094e7dbb1f0139c3add6f3a9ac775 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 23 Jan 2018 14:30:19 -0500 Subject: games/steem: Add 64-bit support. Signed-off-by: B. Watson --- games/steem/steem.SlackBuild | 24 +++++++++++++++++++----- games/steem/steem.info | 2 +- 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" -- cgit v1.2.3