aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-24 01:58:10 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-25 09:18:10 +0700
commit82ac3ae8f0d0066778cfe57b90a65abdae7a5f86 (patch)
tree307c5d10853d8d928015834b6db55101c9bcb3bb
parent03b2ff21188bc7ea91cd949cd10dbf2636ffada7 (diff)
academic/tiemu: New maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/tiemu/tiemu.SlackBuild45
-rw-r--r--academic/tiemu/tiemu.info4
2 files changed, 21 insertions, 28 deletions
diff --git a/academic/tiemu/tiemu.SlackBuild b/academic/tiemu/tiemu.SlackBuild
index 4e76a95846cb..85b1e0094f9f 100644
--- a/academic/tiemu/tiemu.SlackBuild
+++ b/academic/tiemu/tiemu.SlackBuild
@@ -2,7 +2,8 @@
# Slackbuild for tiemu
-# Written by shelldweller <shelldweller@beauxbead.com>
+# Written by shelldweller <email removed>
+# Now maintained by B. Watson <urchlay@slackware.uk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +23,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230224 bkw: BUILD=2
+# - new maintainer.
+# - remove INSTALL and ABOUT-NLS from doc dir (generic, useless).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tiemu
VERSION=${VERSION:-3.03}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +43,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
@@ -73,11 +75,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION-nogdb.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 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 {} \+
# A few necessary patches
# https://aur.archlinux.org/packages/tiemu/#comment-667308
@@ -98,22 +97,16 @@ CXXFLAGS="$SLKCFLAGS" \
--disable-gdb
make
-
-DESTDIR=$PKG make install
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL LICENSES NEWS \
- README RELEASE TODO docs/ \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc -name "Makefile" -delete
-find $PKG/usr/doc -type f -exec chmod 644 {} \;
+make install DESTDIR=$PKG
+strip $PKG/usr/bin/$PRGNAM
+gzip -9 $PKG/usr/man/man*/*
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a AUTHORS BUGS COPYING ChangeLog LICENSES NEWS \
+ README RELEASE TODO docs/ \
+ $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/academic/tiemu/tiemu.info b/academic/tiemu/tiemu.info
index d665780f3fad..5f6b445bdc15 100644
--- a/academic/tiemu/tiemu.info
+++ b/academic/tiemu/tiemu.info
@@ -6,5 +6,5 @@ MD5SUM="2736440d717a0ee97cdb35189814fc93"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libticalcs2"
-MAINTAINER="shelldweller"
-EMAIL="shelldweller@beauxbead.com"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"