summaryrefslogtreecommitdiffstats
path: root/games/scummvm/scummvm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/scummvm/scummvm.SlackBuild')
-rw-r--r--games/scummvm/scummvm.SlackBuild29
1 files changed, 10 insertions, 19 deletions
diff --git a/games/scummvm/scummvm.SlackBuild b/games/scummvm/scummvm.SlackBuild
index c17aa05fcd..00a21a1f7b 100644
--- a/games/scummvm/scummvm.SlackBuild
+++ b/games/scummvm/scummvm.SlackBuild
@@ -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.8.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