games/scummvm: Updated for version 2.7.1

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Eugene M 2023-09-24 11:18:59 +02:00 committed by Willy Sudiarto Raharjo
parent c0bf1cfc21
commit cbc8c38fa8
2 changed files with 15 additions and 24 deletions

View File

@ -27,11 +27,13 @@
# - 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.5.1}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -61,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
@ -83,10 +86,6 @@ 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 {} \;
# 20200411 bkw: This is necessary for fluidsynth-2.x. Based on upstream's
# git commit 68758a87.
#patch -p1 < $CWD/fix-fluidsynth2-build.diff
# avoid linking breakage on i?86
if [[ $ARCH == i?86 ]]; then linker=bfd; else linker=gold; fi
@ -98,19 +97,12 @@ LDFLAGS="-fuse-ld=$linker" \
--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)
@ -120,9 +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
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
# We don't need these - they're redundant
rm -rf $PKG/usr/share/doc
mkdir -p $PKG/install

View File

@ -1,10 +1,10 @@
PRGNAM="scummvm"
VERSION="2.5.1"
VERSION="2.7.1"
HOMEPAGE="https://www.scummvm.org/"
DOWNLOAD="https://downloads.scummvm.org/frs/scummvm/2.5.1/scummvm-2.5.1.tar.xz"
MD5SUM="79f7541e404f575a37bfa6be448c4046"
DOWNLOAD="https://downloads.scummvm.org/frs/scummvm/2.7.1/scummvm-2.7.1.tar.xz"
MD5SUM="24275e3caa26b9dc0d21020411db77c9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Carlos Corbacho"
EMAIL="carlos@strangeworlds.co.uk"
MAINTAINER="Eugene M."
EMAIL="damagedone@gmx.com"