summaryrefslogtreecommitdiffstats
path: root/development/hexinator/hexinator.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/hexinator/hexinator.SlackBuild')
-rw-r--r--development/hexinator/hexinator.SlackBuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/development/hexinator/hexinator.SlackBuild b/development/hexinator/hexinator.SlackBuild
index 96a64af668..e84ffd4ee1 100644
--- a/development/hexinator/hexinator.SlackBuild
+++ b/development/hexinator/hexinator.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20200326 bkw: update for v1.12 for 64-bit, stay at 1.10 for 32-bit.
+
# 20200317 bkw: update for v1.10, switched from RPM to .deb. Yes, there
# is a v1.11 available, but there are good reasons for not packaging it,
# from our POV:
@@ -15,7 +17,7 @@
# upstream, possibly will be fixed soon.
PRGNAM=hexinator
-VERSION=${VERSION:-1.10}
+VERSION=${VERSION:-1.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,7 +35,7 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
case "$ARCH" in
- i?86) DEBARCH=i386 ;;
+ i?86) DEBARCH=i386 ;;
x86_64) DEBARCH=amd64 ;;
*) echo "!!! Unsupported ARCH '$ARCH'. Only i586|i686|x86_64 allowed." 1>&2
exit 1 ;;
@@ -41,6 +43,18 @@ esac
set -e
+# 1.10 is the last version with 32-bit support. Doing it this way
+# allows 32-bit users to set VERSION in the environment, if they
+# want to build 1.08 or 1.09.
+if [ "$DEBARCH" = "i386" ]; then
+ VERMINOR="$( echo $VERSION | cut -d. -f2 )"
+ if [ "$VERMINOR" -gt 9 ]; then
+ NEWVER=1.10
+ echo "*** Packaging $NEWVER as $VERSION lacks 32-bit support"
+ VERSION=$NEWVER
+ fi
+fi
+
# No 'source' dir, extract directly to $PKG
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT