summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author D Woodfall <dave@slackbuilds.org>2023-05-16 20:27:55 +0100
committer bedlam <dave@slackbuilds.org>2023-05-17 00:58:12 +0100
commitea46d8d9b2713ffe082268b12ecd6403eb69535b (patch)
tree59a447d36def88031a0969c9c0a59720558c9323
parent936deb0df8e18b553240c7b090aa3cce56df9753 (diff)
downloadslackbuilds-ea46d8d9b2713ffe082268b12ecd6403eb69535b.tar.gz
slackbuilds-ea46d8d9b2713ffe082268b12ecd6403eb69535b.tar.xz
games/smokinguns: Copy SlackBuild to docs, i386->i586, http->https.
Signed-off-by: bedlam <dave@slackbuilds.org>
-rw-r--r--games/smokinguns/smokinguns.SlackBuild14
-rw-r--r--games/smokinguns/smokinguns.info4
2 files changed, 15 insertions, 3 deletions
diff --git a/games/smokinguns/smokinguns.SlackBuild b/games/smokinguns/smokinguns.SlackBuild
index ecba34fc37..4a63e6ac0c 100644
--- a/games/smokinguns/smokinguns.SlackBuild
+++ b/games/smokinguns/smokinguns.SlackBuild
@@ -30,7 +30,18 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-ARCH=i386 # i386 binary only
+# 2023-05-16 DW: need an ARCH test
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [[ $ARCH != i?86 ]]; then
+ printf "\n$ARCH is not supported... \n" >/dev/stderr
+ exit 1
+fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
@@ -84,6 +95,7 @@ install -m 0755 -D $CWD/launcher.sh $PKG/usr/bin/smokinguns
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/opt -iname *.txt -type f -exec cp {} $PKG/usr/doc/$PRGNAM-$VERSION \;
cp $PKG/opt/$PRGNAM/README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/games/smokinguns/smokinguns.info b/games/smokinguns/smokinguns.info
index fc7803d9f1..6f5ec6e421 100644
--- a/games/smokinguns/smokinguns.info
+++ b/games/smokinguns/smokinguns.info
@@ -1,7 +1,7 @@
PRGNAM="smokinguns"
VERSION="1.1"
-HOMEPAGE="http://www.smokin-guns.org/"
-DOWNLOAD="http://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip"
+HOMEPAGE="https://www.smokin-guns.org/"
+DOWNLOAD="https://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip"
MD5SUM="f6eac64fa534fa9ff121dda5fd2dba44"
DOWNLOAD_x86_64="UNSUPPORTED"
MD5SUM_x86_64=""