diff options
author | Eric Hameleers <alien@slackware.com> | 2020-05-13 18:42:10 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-05-13 18:42:10 +0200 |
commit | cf8efcbcf0366d91d1bea94a09eb29d9ff204aef (patch) | |
tree | 404f5d07df7e3ce9d7db109e8667b6cae477d7fe /deps/speech-dispatcher/speech-dispatcher.SlackBuild | |
parent | 41a1bcd1e43bb3748eb375a7379da083e810ea77 (diff) | |
download | ktown-cf8efcbcf0366d91d1bea94a09eb29d9ff204aef.tar.gz ktown-cf8efcbcf0366d91d1bea94a09eb29d9ff204aef.tar.xz |
speech-dispatcher: install info files to the correct location
Diffstat (limited to '')
-rwxr-xr-x | deps/speech-dispatcher/speech-dispatcher.SlackBuild | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/deps/speech-dispatcher/speech-dispatcher.SlackBuild b/deps/speech-dispatcher/speech-dispatcher.SlackBuild index a1c9592..aeb75ed 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:-4} TMP=${TMP:-/tmp} PKG=$TMP/package-$PKGNAM @@ -95,6 +95,7 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ + --infodir=/usr/info \ --disable-static \ --build=$TARGET || exit 1 #--without-flite \ @@ -108,6 +109,21 @@ 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 |