diff options
author | B. Watson <yalhcru@gmail.com> | 2021-09-26 17:51:30 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:52:27 +0700 |
commit | 9a2e79831ed1d1c7b7d03b6d62a96c129f01ee0d (patch) | |
tree | a0eda039bd6f52821592b4f11dfc15fbc07804ec /office/convertlit/convertlit.SlackBuild | |
parent | 06c4338844f513b6fcdf3794c6966352a652b41a (diff) |
office/convertlit: Add man page, use SLKCFLAGS.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/convertlit/convertlit.SlackBuild')
-rw-r--r-- | office/convertlit/convertlit.SlackBuild | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/office/convertlit/convertlit.SlackBuild b/office/convertlit/convertlit.SlackBuild index 92b53ae5c06f7..4442fafe7c5aa 100644 --- a/office/convertlit/convertlit.SlackBuild +++ b/office/convertlit/convertlit.SlackBuild @@ -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 |