summaryrefslogtreecommitdiffstats
path: root/office/xournal/xournal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/xournal/xournal.SlackBuild')
-rw-r--r--office/xournal/xournal.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/office/xournal/xournal.SlackBuild b/office/xournal/xournal.SlackBuild
index a74ddd439a..23c177c011 100644
--- a/office/xournal/xournal.SlackBuild
+++ b/office/xournal/xournal.SlackBuild
@@ -1,12 +1,16 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for xournal
# Written by Michael Filz <the_emmel@gmx.net>
+# Updated 2020-2021 by Rob van Nues <sborg63@disroot.org>
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xournal
-VERSION=${VERSION:-0.4.7}
+VERSION=${VERSION:-0.4.8.2016}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -16,7 +20,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}
@@ -76,4 +87,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