From cf8efcbcf0366d91d1bea94a09eb29d9ff204aef Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 13 May 2020 18:42:10 +0200 Subject: speech-dispatcher: install info files to the correct location --- deps/speech-dispatcher/speech-dispatcher.SlackBuild | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'deps') 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 <> $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 -- cgit v1.2.3