diff options
author | B. Watson <yalhcru@gmail.com> | 2022-05-01 13:59:43 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-07 13:59:19 +0700 |
commit | 3a02606f4b741ebc2277cf9b95bea22d91fc93da (patch) | |
tree | 5bca50727d7181ecea07d6edc32ec73c1b32d43c /games | |
parent | ad90d4f2af5ca4195f562677d0dd5d1042649dc9 (diff) |
games/scummvm: Fix doinst.sh and docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/scummvm/doinst.sh | 6 | ||||
-rw-r--r-- | games/scummvm/scummvm.SlackBuild | 12 |
2 files changed, 13 insertions, 5 deletions
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 |