diff options
author | B. Watson <yalhcru@gmail.com> | 2021-08-02 16:46:05 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:51:28 +0700 |
commit | 4956ca10e3d6d9736425d1e11bc5d9120b9a849d (patch) | |
tree | 9865b6bc3e3bf2501e801fbcd1e3cecc763881d2 /accessibility/svox/svox.SlackBuild | |
parent | 8e9bae1e816e7b09a5c9fc364fd365b9fa300b6d (diff) |
accessibility/svox: Add man page for pico2audio.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'accessibility/svox/svox.SlackBuild')
-rw-r--r-- | accessibility/svox/svox.SlackBuild | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/accessibility/svox/svox.SlackBuild b/accessibility/svox/svox.SlackBuild index 39fa5ca2cf777..3c572b6fe2b01 100644 --- a/accessibility/svox/svox.SlackBuild +++ b/accessibility/svox/svox.SlackBuild @@ -12,7 +12,7 @@ # It's in the Debian non-free repo on a technicality: svox is free # software released under the Apache-2.0 license, but the sources # for the compiled voices (/usr/share/pico/lang/*.bin) are missing, -# so it doesn't quite comply with the its own license. +# so it doesn't quite comply with its own license. # Notes to self: @@ -22,11 +22,18 @@ # listed as "www.android.com", it seems more useful to set HOMEPAGE # to the Debian page for svox. +# 20210802 bkw: BUILD=2 +# - update pico2audio script to support multiple words without quotes. +# - add man page for pico2audio. +# - update pico2wave man page. +# - add svox man page symlink, in case someone remembers the name of the +# package but not the name of the binary. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=svox VERSION=${VERSION:-1.0+git20130326_8} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +45,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 @@ -81,11 +85,8 @@ tar xvf $CWD/$PRGVER.orig.tar.gz cd $PRGNAM-$DEBVER tar xvf $CWD/$PRGVER-$DEBBLD.debian.tar.xz 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 {} \+ # Apply all of Debian's patches. Many thanks to the Debian maintainers # for all the work that went into these patches. @@ -128,8 +129,14 @@ install -m0755 -oroot -groot $CWD/pico2audio $PKG/usr/bin # The original Debian man page was generated from the --help output. I've # expanded it to include a proper description, examples, a list of # allowed languages for the -l option, and a few other goodies. +# 20210802 bkw: Added a man page for the pico2audio script, too. +# Please don't add pico2audio.rst to the package, and please don't +# remove it from the repo because it's not in the package: it's the +# source for pico2audio.1. mkdir -p $PKG/usr/man/man1 gzip -9c < $CWD/pico2wave.1 > $PKG/usr/man/man1/pico2wave.1.gz +ln -s pico2wave.1.gz $PKG/usr/man/man1/$PRGNAM.1.gz +gzip -9c < $CWD/pico2audio.1 > $PKG/usr/man/man1/pico2audio.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat ../debian/copyright > $PKG/usr/doc/$PRGNAM-$VERSION/copyright |