summaryrefslogtreecommitdiffstats
path: root/accessibility/espeak/espeak.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/espeak/espeak.SlackBuild')
-rw-r--r--accessibility/espeak/espeak.SlackBuild20
1 files changed, 12 insertions, 8 deletions
diff --git a/accessibility/espeak/espeak.SlackBuild b/accessibility/espeak/espeak.SlackBuild
index ef56293444..e642695de0 100644
--- a/accessibility/espeak/espeak.SlackBuild
+++ b/accessibility/espeak/espeak.SlackBuild
@@ -5,16 +5,14 @@
# Written by B. Watson (yalhcru@gmail.com)
PRGNAM=espeak
-VERSION=${VERSION:-1.42.04}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.44.05}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -54,7 +52,14 @@ find . \
-exec chmod 644 {} \;
# Cruft...
-rm -rf docs/images/.svn
+find . -type d -a -name .svn -print0 | xargs -0 rm -rf
+
+# Make the Makefile install everything stripped
+patch -p1 < $CWD/makefile.patch
+
+# Note: there are two executables (speak and espeak). They seem to do the same
+# thing, except "speak" doesn't use libespeak.so at runtime. This package only
+# installs "espeak" (which is how other distros do it, too).
cd src
@@ -70,16 +75,15 @@ fi
make LIBDIR=/usr/lib$LIBDIRSUFFIX CXXFLAGS="$SLKCFLAGS" $EXTRAMAKEFLAGS
make install LIBDIR=/usr/lib$LIBDIRSUFFIX DESTDIR=$PKG $EXTRAMAKEFLAGS
-strip $PKG/usr/bin/$PRGNAM $PKG/usr/lib$LIBDIRSUFFIX/lib$PRGNAM.so.*.*.*
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 ChangeLog ReadMe *.txt docs/* $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
-# Man page from Ubuntu
+# Man page from Debian
mkdir -p $PKG/usr/man/man1
gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz