games/scummvm: Updated for version 2.0.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Carlos Corbacho 2018-01-07 17:37:13 +07:00 committed by Willy Sudiarto Raharjo
parent 693928d174
commit eb7ac7304e
2 changed files with 17 additions and 16 deletions

View file

@ -3,7 +3,7 @@
# Slackware build script for scummvm # Slackware build script for scummvm
# Copyright 2006 Halim Issa <yallaone@gmail.com> # Copyright 2006 Halim Issa <yallaone@gmail.com>
# Copyright 2008, 2010, 2012-2014 Carlos Corbacho <carlos@strangeworlds.co.uk> # Copyright 2008, 2010, 2012-2018 Carlos Corbacho <carlos@strangeworlds.co.uk>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=scummvm PRGNAM=scummvm
VERSION=${VERSION:-1.7.0} VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i586 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -57,12 +57,14 @@ fi
DOCS="AUTHORS COPYING* COPYRIGHT NEWS README TODO" DOCS="AUTHORS COPYING* COPYRIGHT NEWS README TODO"
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1 cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION || exit 1 cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -77,11 +79,10 @@ CXXFLAGS="$SLKCFLAGS" \
--bindir=/usr/games \ --bindir=/usr/games \
--libdir=/usr/lib$LIBDIRSUFFIX \ --libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \ --mandir=/usr/man \
--disable-debug \ --disable-debug
|| exit 1
make || exit 1 make
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG
# The .desktop file for the menu is not being installed # The .desktop file for the menu is not being installed
install -D -m 0644 dists/scummvm.desktop \ install -D -m 0644 dists/scummvm.desktop \

View file

@ -1,8 +1,8 @@
PRGNAM="scummvm" PRGNAM="scummvm"
VERSION="1.7.0" VERSION="2.0.0"
HOMEPAGE="http://www.scummvm.org/" HOMEPAGE="https://www.scummvm.org/"
DOWNLOAD="http://downloads.sourceforge.net/scummvm/scummvm-1.7.0.tar.bz2" DOWNLOAD="https://www.scummvm.org/frs/scummvm/2.0.0/scummvm-2.0.0.tar.xz"
MD5SUM="be91bf3fa2f1b44a82c92cfe8c5cc1c8" MD5SUM="f87538f7c3fc48c0bf5034b699a00042"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""