summaryrefslogtreecommitdiffstats
path: root/desktop/oomox
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/oomox')
-rw-r--r--desktop/oomox/oomox.SlackBuild16
-rw-r--r--desktop/oomox/oomox.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/desktop/oomox/oomox.SlackBuild b/desktop/oomox/oomox.SlackBuild
index bf1156000d..b91a8c5312 100644
--- a/desktop/oomox/oomox.SlackBuild
+++ b/desktop/oomox/oomox.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for oomox
@@ -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=oomox
VERSION=${VERSION:-1.7.0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
@@ -37,7 +40,14 @@ MATERIAVER=${MATERIAVER:-20180922}
OOMOXVER=${OOMOXVER:-1.9.1}
OOMOXIFYVER=${OOMOXIFYVER:-1.0.1}
-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}
@@ -136,4 +146,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/oomox/oomox.info b/desktop/oomox/oomox.info
index fecf967e7f..d65f4be454 100644
--- a/desktop/oomox/oomox.info
+++ b/desktop/oomox/oomox.info
@@ -19,6 +19,6 @@ MD5SUM="39ba21ea6ba52f3317da5066d80cae20 \
02f3cefaf6ce3b89b8a5cc6b8a7430b4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="pygobject3-python3 python3-pillow sassc"
+REQUIRES=""
MAINTAINER="Leo C."
EMAIL="leoc@gmx.com"