diff options
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 |
commit | c4295dcba60094e7dbb1f0139c3add6f3a9ac775 (patch) | |
tree | e137581a94b2f7e7a8828df2f1aa154a6a917e14 /games/steem/steem.SlackBuild | |
parent | 217af619cac6afb4ac6f7b63d78efac273b79a08 (diff) | |
download | slackbuilds-c4295dcba60094e7dbb1f0139c3add6f3a9ac775.tar.gz |
games/steem: Add 64-bit support.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/steem/steem.SlackBuild')
-rw-r--r-- | games/steem/steem.SlackBuild | 24 |
1 files changed, 19 insertions, 5 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 \) \ |