summaryrefslogtreecommitdiffstats
path: root/system/guake/guake.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/guake/guake.SlackBuild')
-rw-r--r--system/guake/guake.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/system/guake/guake.SlackBuild b/system/guake/guake.SlackBuild
index 3e9db65f3c..c56c04d225 100644
--- a/system/guake/guake.SlackBuild
+++ b/system/guake/guake.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for guake
# Copyright 2017-2018 Donald Cooley South Haven, IN USA
-# Copyright (C) 2020 Logan Rathbone <poprocks@gmail.com> Province of Ontario, Canada
+# Copyright (C) 2020-2023 Logan Rathbone <poprocks@gmail.com> Province of Ontario, Canada
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,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=guake
-VERSION=${VERSION:-3.7.0}
+VERSION=${VERSION:-3.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,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}
@@ -57,7 +67,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# fix some of the broken paths
-patch -p0 < $CWD/guake-3.7.0-fix-paths.patch
+patch -p0 < $CWD/guake-3.8.5-fix-paths.patch
make generate-desktop generate-mo compile-glib-schemas-dev
make DESTDIR="$PKG" PREFIX='/usr' install-schemas install-locale
@@ -77,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