diff options
Diffstat (limited to 'games/ztools/ztools.SlackBuild')
-rw-r--r-- | games/ztools/ztools.SlackBuild | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/games/ztools/ztools.SlackBuild b/games/ztools/ztools.SlackBuild index 5ce982c46e446..88dd2f47c6d66 100644 --- a/games/ztools/ztools.SlackBuild +++ b/games/ztools/ztools.SlackBuild @@ -6,11 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211010 bkw: BUILD=2, fix -current build (lha => lhasa caused breakage) + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ztools VERSION=${VERSION:-7.3.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,9 +24,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 @@ -62,19 +61,15 @@ mkdir -p $PRGNAM-$VERSION cd $PRGNAM-$VERSION # extract 'em all first. None of these have a top-level dir in -# their archive. Also DebugTools was lha'ed on an Amiga, causing -# filename weirdness (Makefile => srcMakefile, etc). +# their archive. mkdir -p $PRGNAM zcut zdebugtool ( cd $PRGNAM && tar xvf $CWD/$PRGNAM$TARVER.tar.gz ) ( cd zcut && unzip $CWD/zcut$ZCUTVER.zip ) -( cd zdebugtool && lha x $CWD/DebugTool_$ZDEBUGVER.lha && rename src '' src* ) +( cd zdebugtool && lha x $CWD/DebugTool_$ZDEBUGVER.lha ) 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 {} \+ BINDIR=$PKG/usr/bin DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION @@ -111,13 +106,13 @@ cd zcut ln -s zcut.1.gz $MANDIR/unmfm.1.gz cd .. -cd zdebugtool +cd zdebugtool/src patch -p1 < $PATCHDIR/zdebugtool-compilefix.diff make CFLAGS="$SLKCFLAGS" install -s -m0755 zdebugtool $BINDIR - # man page reconstituted from preformatted DebugTools.man + # man page reconstituted from preformatted DebugTool.man gzip -9c < $CWD/zdebugtool.1 > $MANDIR/zdebugtool.1.gz -cd .. +cd ../.. # Also include my own modest z-code utility. It replaces the zren.exe # that ships with zcut. |