From 3a02606f4b741ebc2277cf9b95bea22d91fc93da Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 1 May 2022 13:59:43 -0400 Subject: games/scummvm: Fix doinst.sh and docs. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/scummvm/doinst.sh | 6 ++++++ games/scummvm/scummvm.SlackBuild | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'games') diff --git a/games/scummvm/doinst.sh b/games/scummvm/doinst.sh index 98d466d8b908b..9c4154d69f414 100644 --- a/games/scummvm/doinst.sh +++ b/games/scummvm/doinst.sh @@ -1,3 +1,9 @@ if [ -x usr/bin/update-desktop-database ]; then ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/scummvm/scummvm.SlackBuild b/games/scummvm/scummvm.SlackBuild index 6a2650450f818..c17aa05fcd335 100644 --- a/games/scummvm/scummvm.SlackBuild +++ b/games/scummvm/scummvm.SlackBuild @@ -23,11 +23,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220501 bkw: Modified by SlackBuilds.org, BUILD=2: +# - update icon cache in doinst.sh. +# - include SlackBuild in package doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=scummvm VERSION=${VERSION:-2.5.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -119,7 +120,8 @@ strip --strip-unneeded $PKG/usr/games/scummvm 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # We don't need these - they're redundant rm -rf $PKG/usr/share/doc -- cgit v1.2.3