summaryrefslogtreecommitdiffstats
path: root/misc/weather/weather.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/weather/weather.SlackBuild')
-rw-r--r--misc/weather/weather.SlackBuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/misc/weather/weather.SlackBuild b/misc/weather/weather.SlackBuild
index f3e200fe3c..0c4d2d8347 100644
--- a/misc/weather/weather.SlackBuild
+++ b/misc/weather/weather.SlackBuild
@@ -1,26 +1,39 @@
-#!/bin/sh
-
+#!/bin/bash
+#
# Slackware build script for weather
-
+#
# Written by stormtracknole - stormtracknole@gmail.com
-
+#
# * Updated to version 2.0 12/30/13
+#
+# * Updated to version 2.3 20200319
+#
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=weather
-VERSION=${VERSION:-2.0}
+VERSION=${VERSION:-2.3}
BUILD=${BUILD:-1}
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}
@@ -67,7 +80,7 @@ mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/python2.7/site-packages
cp -a weather.py $PKG/usr/lib${LIBDIRSUFFIX}/python2.7/site-packages
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog FAQ INSTALL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a FAQ INSTALL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -75,4 +88,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