summaryrefslogtreecommitdiffstats
path: root/system/untex/untex.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/untex/untex.SlackBuild')
-rw-r--r--system/untex/untex.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/system/untex/untex.SlackBuild b/system/untex/untex.SlackBuild
index 0b3af3470a..9b20c06ae1 100644
--- a/system/untex/untex.SlackBuild
+++ b/system/untex/untex.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for untex
# Written by Niki Kovacs (email removed)
#
-# Now maintained by B. Watson <yalhcru@gmail.com>
+# Now maintained by B. Watson <urchlay@slackware.uk>
#
# All rights reserved.
#
@@ -25,15 +25,21 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220212 bkw:
+# - actually update the maintainer/email in the .info file, d'oh!
+
# 20170626 bkw:
# - take over maintenance
# - fix missing includes and other compiler warnings
# - minor script tweaks
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=untex
VERSION=${VERSION:-1.3}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -43,7 +49,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}
@@ -72,11 +82,7 @@ mkdir $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -C $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
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 {} \;
+chmod 644 *
# 20170626 bkw: fix most of the compiler warnings we get with -Wall. This
# should help with -current's gcc7, which is quite picky.
@@ -94,4 +100,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