summaryrefslogtreecommitdiffstats
path: root/development/tweak/tweak.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/tweak/tweak.SlackBuild')
-rw-r--r--development/tweak/tweak.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/development/tweak/tweak.SlackBuild b/development/tweak/tweak.SlackBuild
index 20af16d924..f623881a0c 100644
--- a/development/tweak/tweak.SlackBuild
+++ b/development/tweak/tweak.SlackBuild
@@ -2,14 +2,18 @@
# Slackware build script for tweak
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210907 bkw: update for v3.02+20200601 (git commit ad97e13),
+# which has a few bugfixes. The patch does *not* include the last git
+# commit, d131fe2, which switches from a plain Makefile to autotools.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tweak
-VERSION=${VERSION:-3.02}
+VERSION=${VERSION:-3.02+20200601}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +26,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -50,15 +51,20 @@ fi
set -e
+TARVER=${VERSION/+*}
+PATCH=${VERSION/*+}
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$TARVER
+tar xvf $CWD/$PRGNAM-$TARVER.tar.gz
+cd $PRGNAM-$TARVER
chown -R root:root .
chmod 644 *
+[ "$PATCH" != "$VERSION" ] && patch -p1 < $CWD/$PATCH.diff
+
make XFLAGS="$SLKCFLAGS"
install -D -s -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/usr/man/man1