summaryrefslogtreecommitdiffstats
path: root/desktop/i3pystatus
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/i3pystatus')
-rw-r--r--desktop/i3pystatus/i3pystatus.SlackBuild16
-rw-r--r--desktop/i3pystatus/i3pystatus.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/desktop/i3pystatus/i3pystatus.SlackBuild b/desktop/i3pystatus/i3pystatus.SlackBuild
index 88800dcda9..f903dab2d4 100644
--- a/desktop/i3pystatus/i3pystatus.SlackBuild
+++ b/desktop/i3pystatus/i3pystatus.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for i3pystatus
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=i3pystatus
VERSION=${VERSION:-3.35}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
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}
@@ -83,4 +93,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/desktop/i3pystatus/i3pystatus.info b/desktop/i3pystatus/i3pystatus.info
index b5c0be7e2f..e485e5696e 100644
--- a/desktop/i3pystatus/i3pystatus.info
+++ b/desktop/i3pystatus/i3pystatus.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/8c/f4/88270a2118696fe20a7aed427c6e26f
MD5SUM="879a93b8bc87944e331d113c928f2f9a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3"
+REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"