diff options
-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 98d466d8b908..9c4154d69f41 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 6a2650450f81..c17aa05fcd33 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 |