diff options
Diffstat (limited to 'accessibility/espeak/espeak.SlackBuild')
-rw-r--r-- | accessibility/espeak/espeak.SlackBuild | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/accessibility/espeak/espeak.SlackBuild b/accessibility/espeak/espeak.SlackBuild index e642695de0..b91222a81e 100644 --- a/accessibility/espeak/espeak.SlackBuild +++ b/accessibility/espeak/espeak.SlackBuild @@ -5,7 +5,7 @@ # Written by B. Watson (yalhcru@gmail.com) PRGNAM=espeak -VERSION=${VERSION:-1.44.05} +VERSION=${VERSION:-1.45.04} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,26 +62,26 @@ patch -p1 < $CWD/makefile.patch # installs "espeak" (which is how other distros do it, too). cd src - -if [ "${WAVONLY:-no}" = "yes" ]; then - EXTRAMAKEFLAGS="AUDIO=none" -else - # Let this script die due to "set -e" if no portaudio installed... - pkg-config --modversion portaudio-2.0 - # portaudio version *should* be 19, but support 18 just in case... - rm -f portaudio.h - ln -s portaudio$( pkg-config --modversion portaudio-2.0 ).h portaudio.h -fi - -make LIBDIR=/usr/lib$LIBDIRSUFFIX CXXFLAGS="$SLKCFLAGS" $EXTRAMAKEFLAGS -make install LIBDIR=/usr/lib$LIBDIRSUFFIX DESTDIR=$PKG $EXTRAMAKEFLAGS -rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a # guidelines say no static libs -find $PKG/usr/share -type f -print0 | xargs -0 chmod 644 - + if [ "${WAVONLY:-no}" = "yes" ]; then + EXTRAMAKEFLAGS="AUDIO=none" + else + # Let this script die due to "set -e" if no portaudio installed... + pkg-config --modversion portaudio-2.0 + # portaudio version *should* be 19, but support 18 just in case... + rm -f portaudio.h + ln -s portaudio$( pkg-config --modversion portaudio-2.0 ).h portaudio.h + fi + + make LIBDIR=/usr/lib$LIBDIRSUFFIX CXXFLAGS="$SLKCFLAGS" $EXTRAMAKEFLAGS + make install LIBDIR=/usr/lib$LIBDIRSUFFIX DESTDIR=$PKG $EXTRAMAKEFLAGS + rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a # guidelines say no static libs + find $PKG/usr/share -type f -print0 | xargs -0 chmod 644 cd .. + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -r ReadMe *.txt docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \; # Man page from Debian mkdir -p $PKG/usr/man/man1 @@ -90,9 +90,9 @@ gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc if [ "${WAVONLY:-no}" = "yes" ]; then - sed -i \ - '19s/:/: This package lacks audio support (wav file output only)/' \ - $PKG/install/slack-desc + sed -i \ + '19s/:/: This package lacks audio support (wav file output only)/' \ + $PKG/install/slack-desc fi cd $PKG |