summaryrefslogtreecommitdiffstats
path: root/development/reflex/reflex.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/reflex/reflex.SlackBuild')
-rw-r--r--development/reflex/reflex.SlackBuild29
1 files changed, 18 insertions, 11 deletions
diff --git a/development/reflex/reflex.SlackBuild b/development/reflex/reflex.SlackBuild
index d7ecb6b137..4c48548ad4 100644
--- a/development/reflex/reflex.SlackBuild
+++ b/development/reflex/reflex.SlackBuild
@@ -1,15 +1,21 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for reflex
-# 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.
+# 20230912 bkw: updated for v2.5.4.20230523
+# 20230103 bkw: updated for v2.5.4.20221012.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=reflex
-VERSION=${VERSION:-2.5.4.20171231}
+VERSION=${VERSION:-2.5.4.20230523}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -19,7 +25,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
@@ -53,11 +63,8 @@ rm -rf $PRGNAM-$TARVER
tar xvf $CWD/$PRGNAM-$TARVER.tgz
cd $PRGNAM-$TARVER
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Check VERSION in tarball, to make sure the version hasn't
# updated. Nobody but me should ever see this error message (in the
@@ -91,7 +98,7 @@ make
make install DESTDIR=$PKG
strip $PKG/usr/bin/$PRGNAM
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+[ -e $PKG/usr/man/man1/$PRGNAM.1.gz ] || gzip -9 $PKG/usr/man/man1/$PRGNAM.1
# Considered adding MISC/* to the doc dir, but it's almost all cruft
# from 20+ years ago, from before reflex forked from flex, and it looks
@@ -104,4 +111,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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