aboutsummaryrefslogtreecommitdiff
path: root/development/tweak/tweak.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/tweak/tweak.SlackBuild')
-rw-r--r--development/tweak/tweak.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/development/tweak/tweak.SlackBuild b/development/tweak/tweak.SlackBuild
index 20af16d924ae..ac63a2427c23 100644
--- a/development/tweak/tweak.SlackBuild
+++ b/development/tweak/tweak.SlackBuild
@@ -6,10 +6,14 @@
# 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