diff options
Diffstat (limited to 'office/convertlit/convertlit.SlackBuild')
-rw-r--r-- | office/convertlit/convertlit.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/office/convertlit/convertlit.SlackBuild b/office/convertlit/convertlit.SlackBuild index 92b53ae5c0..05630b47b5 100644 --- a/office/convertlit/convertlit.SlackBuild +++ b/office/convertlit/convertlit.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for convertlit -# 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. @@ -11,6 +11,9 @@ # the package name, but not the actual executable. I've renamed the binary # to convertlit to keep things SFW. +# 20210926 bkw: BUILD=4 +# - actually use SLKCFLAGS. +# - add man page for lit2epub. # 20170131 bkw: BUILD=3, REQUIRES was ltm, now libtommath cd $(dirname $0) ; CWD=$(pwd) @@ -29,9 +32,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 @@ -68,11 +68,8 @@ mkdir -p $SRCNAME cd $SRCNAME unzip $CWD/$SRCNAME.zip 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 {} \+ # use system-installed ltm sed -i \ @@ -83,6 +80,9 @@ sed -i \ # update the help message to reflect the name change sed -i '/^"/s,cl.t,'$PRGNAM,g cl?t$SRCVER/cl?t.c +# 20210926 bkw: SLKCFLAGS weren't being used. Derp. +sed -i "s,-O[23],$SLKCFLAGS," */Makefile + make -C lib make -C cl?t$SRCVER @@ -92,9 +92,11 @@ install -s -m0755 cl?t$SRCVER/cl?t $PKG/usr/bin/$PRGNAM # handy wrapper script install -m0755 $CWD/lit2epub $PKG/usr/bin -# man page borrowed from Debian +# convertlit man page borrowed from Debian, lit2epub written by +# SlackBuild author. mkdir -p $PKG/usr/man/man1 gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +gzip -9c < $CWD/lit2epub.1 > $PKG/usr/man/man1/lit2epub.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION sed 's,\r,,' cl?t$SRCVER/COPYING > $PKG/usr/doc/$PRGNAM-$VERSION/COPYING |