diff options
Diffstat (limited to 'games/scummvm')
-rw-r--r-- | games/scummvm/README | 14 | ||||
-rw-r--r-- | games/scummvm/doinst.sh | 6 | ||||
-rw-r--r-- | games/scummvm/scummvm.SlackBuild | 45 | ||||
-rw-r--r-- | games/scummvm/scummvm.info | 10 |
4 files changed, 46 insertions, 29 deletions
diff --git a/games/scummvm/README b/games/scummvm/README index 0d7522eab1..db102cf764 100644 --- a/games/scummvm/README +++ b/games/scummvm/README @@ -1,9 +1,9 @@ ScummVM is a collection of interpreters, capable of emulating several -adventure game engines. ScummVM mainly supports engines created using -SCUMM (Script Creation Utility for Maniac Mansion), used in various -LucasArts games such as Monkey Island, Day of the Tentacle, and others. -ScummVM also contains interpreters for several non-SCUMM games - currently -Beneath a Steel Sky, Broken Sword I & II, and Simon the Sorcerer 1 & 2. +adventure game engines. ScummVM mainly supports engines created +using SCUMM (Script Creation Utility for Maniac Mansion), used in +various LucasArts games such as Monkey Island, Day of the Tentacle, +and others. ScummVM also contains interpreters for several non-SCUMM +games - currently Beneath a Steel Sky, Broken Sword I & II, and Simon +the Sorcerer 1 & 2. -ScummVM optionally uses libmpeg2 and fluidsynth, both are available from -SlackBuilds.org +ScummVM optionally uses libmpeg2. diff --git a/games/scummvm/doinst.sh b/games/scummvm/doinst.sh index 98d466d8b9..9c4154d69f 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 1a54e58fe9..00a21a1f7b 100644 --- a/games/scummvm/scummvm.SlackBuild +++ b/games/scummvm/scummvm.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for scummvm @@ -23,10 +23,19 @@ # 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. + +# Modified by Eugene M., <damagedone at gmx dot com> + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=scummvm -VERSION=${VERSION:-2.1.1} +VERSION=${VERSION:-2.8.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +45,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -50,13 +63,14 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi -DOCS="AUTHORS COPYING* COPYRIGHT NEWS.md README.md TODO" - set -e rm -rf $PKG @@ -72,26 +86,23 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# avoid linking breakage on i?86 +if [[ $ARCH == i?86 ]]; then linker=bfd; else linker=gold; fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="-fuse-ld=$linker" \ ./configure \ --prefix=/usr \ --bindir=/usr/games \ --libdir=/usr/lib$LIBDIRSUFFIX \ --mandir=/usr/man \ - --disable-debug + --disable-debug \ + --enable-release-mode make make install DESTDIR=$PKG -# The .desktop file for the menu is not being installed -install -D -m 0644 dists/scummvm.desktop \ - $PKG/usr/share/applications/scummvm.desktop - -# Hardcode the location for the .desktop icon -sed -i s%Icon=%Icon=/usr/share/pixmaps/% \ - $PKG/usr/share/applications/scummvm.desktop - strip --strip-unneeded $PKG/usr/games/scummvm 2> /dev/null # Compress the man page(s) @@ -101,8 +112,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 -# We don't need these - they're redundant +cp -a AUTHORS COPYING* COPYRIGHT NEWS.md README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -rf $PKG/usr/share/doc mkdir -p $PKG/install @@ -110,4 +121,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/scummvm/scummvm.info b/games/scummvm/scummvm.info index afe8aaddfc..d80336dcd4 100644 --- a/games/scummvm/scummvm.info +++ b/games/scummvm/scummvm.info @@ -1,10 +1,10 @@ PRGNAM="scummvm" -VERSION="2.1.1" +VERSION="2.8.1" HOMEPAGE="https://www.scummvm.org/" -DOWNLOAD="https://www.scummvm.org/frs/scummvm/2.1.1/scummvm-2.1.1.tar.xz" -MD5SUM="d75fec6358f7814b47d6aca5e18c9863" +DOWNLOAD="https://downloads.scummvm.org/frs/scummvm/2.8.1/scummvm-2.8.1.tar.xz" +MD5SUM="641a3937baf17ac6123ae6ed664e5ce3" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Carlos Corbacho" -EMAIL="carlos@strangeworlds.co.uk" +MAINTAINER="Eugene M." +EMAIL="damagedone@gmx.com" |