diff options
Diffstat (limited to 'deps/speech-dispatcher/speech-dispatcher.SlackBuild')
-rwxr-xr-x | deps/speech-dispatcher/speech-dispatcher.SlackBuild | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/deps/speech-dispatcher/speech-dispatcher.SlackBuild b/deps/speech-dispatcher/speech-dispatcher.SlackBuild index a1c9592..21b5b13 100755 --- a/deps/speech-dispatcher/speech-dispatcher.SlackBuild +++ b/deps/speech-dispatcher/speech-dispatcher.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 2019 Patrick J. Volkerding, Sebeka, MN, USA -# Copyright 2019 Eric Hameleers, Eindhoven, NL +# Copyright 2019, 2020 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=speech-dispatcher VERSION=${VERSION:-0.8.8} -BUILD=${BUILD:-3} +BUILD=${BUILD:-5} TMP=${TMP:-/tmp} PKG=$TMP/package-$PKGNAM @@ -95,19 +95,38 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ + --infodir=/usr/info \ --disable-static \ + --without-flite \ --build=$TARGET || exit 1 - #--without-flite \ make || exit 1 make install DESTDIR=$PKG || exit 1 +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + # Add documentation: mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ ANNOUNCE AUTHORS BUGS COPYING* README* TODO \ $PKG/usr/doc/$PKGNAM-$VERSION +# Compress info pages and remove the package's dir file: +if [ -d $PKG/usr/info ]; then + rm -f $PKG/usr/info/dir + gzip -9f $PKG/usr/info/*.info* +fi + +# Add this to the doinst.sh: +mkdir -p $PKG/install +cat <<EOT >> $PKG/install/doinst.sh +# Install info files: +for INFOFILE in usr/info/*.info.gz ; do + chroot . install-info /${INFOFILE} /usr/info/dir 2> /dev/null +done +EOT + # Strip binaries (if any): find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |