diff options
Diffstat (limited to 'accessibility/svox/svox.SlackBuild')
-rw-r--r-- | accessibility/svox/svox.SlackBuild | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/accessibility/svox/svox.SlackBuild b/accessibility/svox/svox.SlackBuild index 39fa5ca2cf..70de24a97f 100644 --- a/accessibility/svox/svox.SlackBuild +++ b/accessibility/svox/svox.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for svox -# 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. @@ -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 |