diff options
author | David Spencer | 2018-02-11 22:59:19 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2018-02-17 01:42:53 +0100 |
commit | 161c20267b4f0ab886fd1925219ac1bd211b6f81 (patch) | |
tree | 79765690843f99488b09844525e4e182652a3837 /graphics/PureRef/PureRef.SlackBuild | |
parent | 9ae4a0cf62801853e6144ca99373bf213b46e532 (diff) | |
download | slackbuilds-161c20267b4f0ab886fd1925219ac1bd211b6f81.tar.gz |
graphics/PureRef: Unsupported except on x86_64.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/PureRef/PureRef.SlackBuild')
-rw-r--r-- | graphics/PureRef/PureRef.SlackBuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/PureRef/PureRef.SlackBuild b/graphics/PureRef/PureRef.SlackBuild index 4370461be6..a60ad12ebd 100644 --- a/graphics/PureRef/PureRef.SlackBuild +++ b/graphics/PureRef/PureRef.SlackBuild @@ -27,13 +27,13 @@ VERSION=${VERSION:-1.9.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -case "$( uname -m )" in - i?86) ARCH=i586 ; BASENAME=${BASENAME:-PureRef-1.9.2_x86} ;; - x86_64) ARCH=x86_64 ; BASENAME=${BASENAME:-PureRef-1.9.2_x64} ;; - *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;; -esac +if [ "${ARCH:=$(uname -m)}" != "x86_64" ]; then + echo "$ARCH is not supported." + exit 1 +fi set -e + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -42,7 +42,7 @@ OUTPUT=${OUTPUT:-/tmp} rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $PKG -ar p $CWD/$BASENAME.deb data.tar.xz | tar xvJ +ar p $CWD/${PRGNAM}-${VERSION}_x64.deb data.tar.xz | tar xvJ chown -R root:root . find -L . \ |