summaryrefslogtreecommitdiffstats
path: root/misc/gxmessage
diff options
context:
space:
mode:
Diffstat (limited to 'misc/gxmessage')
-rw-r--r--misc/gxmessage/gxmessage.SlackBuild22
-rw-r--r--misc/gxmessage/gxmessage.info4
-rw-r--r--misc/gxmessage/slack-desc2
3 files changed, 19 insertions, 9 deletions
diff --git a/misc/gxmessage/gxmessage.SlackBuild b/misc/gxmessage/gxmessage.SlackBuild
index fceed58d3d..a6fc1a8870 100644
--- a/misc/gxmessage/gxmessage.SlackBuild
+++ b/misc/gxmessage/gxmessage.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for gxmessage
@@ -29,26 +29,36 @@
# Modified by the SlackBuilds.org project.
# Modified by slakmagik
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=gxmessage
VERSION=${VERSION:-2.12.4}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# 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
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -105,4 +115,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/gxmessage/gxmessage.info b/misc/gxmessage/gxmessage.info
index 8a5f1d297d..9ce19e6324 100644
--- a/misc/gxmessage/gxmessage.info
+++ b/misc/gxmessage/gxmessage.info
@@ -1,7 +1,7 @@
PRGNAM="gxmessage"
VERSION="2.12.4"
-HOMEPAGE="http://homepages.ihug.co.nz/~trmusson/programs.html#gxmessage"
-DOWNLOAD="http://homepages.ihug.co.nz/~trmusson/stuff/gxmessage-2.12.4.tar.gz"
+HOMEPAGE="https://trmusson.dreamhosters.com/programs.html#gxmessage"
+DOWNLOAD="https://trmusson.dreamhosters.com/stuff/gxmessage-2.12.4.tar.gz"
MD5SUM="7c94c714ebedbfa2db2d645cc4a4092a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/misc/gxmessage/slack-desc b/misc/gxmessage/slack-desc
index 317e46d1a9..8dc3a5469b 100644
--- a/misc/gxmessage/slack-desc
+++ b/misc/gxmessage/slack-desc
@@ -16,4 +16,4 @@ gxmessage: xmessage, gxmessage accepts any option xmessage would, and returns
gxmessage: the same exit codes.
gxmessage:
gxmessage: Homepage:
-gxmessage: http://homepages.ihug.co.nz/~trmusson/programs.html#gxmessage
+gxmessage: https://trmusson.dreamhosters.com/programs.html#gxmessage