summaryrefslogtreecommitdiffstats
path: root/system/tabbed/tabbed.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/tabbed/tabbed.SlackBuild')
-rw-r--r--system/tabbed/tabbed.SlackBuild21
1 files changed, 10 insertions, 11 deletions
diff --git a/system/tabbed/tabbed.SlackBuild b/system/tabbed/tabbed.SlackBuild
index ed2eaf612c..e371454aab 100644
--- a/system/tabbed/tabbed.SlackBuild
+++ b/system/tabbed/tabbed.SlackBuild
@@ -2,10 +2,12 @@
# Slackware build script for tabbed
-# 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.
+# 20221228 bkw: update for 0.7
+
# 20140826 bkw:
# - updated for 0.6
# - add support for patches/. The old 0.4 build had this, but this one
@@ -15,7 +17,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tabbed
-VERSION=${VERSION:-0.6}
+VERSION=${VERSION:-0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -28,9 +30,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
@@ -63,11 +62,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 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 {} \+
# Apply any patches the user might have added. This is more complex
# than usual because we want to detect whether each patch needs -p0
@@ -89,6 +85,9 @@ for i in $( ls $CWD/patches ); do
patch -p$p < $diff
done
+# upstream forgot this man page, apparently
+sed -i '/xembed\.1/d' Makefile
+
sed -i \
-e 's,share/man,man,' \
-e 's,usr/local,usr/,' \
@@ -107,7 +106,7 @@ make install DESTDIR=$PKG
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install