summaryrefslogtreecommitdiffstats
path: root/games/mgba
diff options
context:
space:
mode:
Diffstat (limited to 'games/mgba')
-rw-r--r--games/mgba/README12
-rw-r--r--games/mgba/doinst.sh4
-rw-r--r--games/mgba/mgba.SlackBuild31
-rw-r--r--games/mgba/mgba.info8
4 files changed, 28 insertions, 27 deletions
diff --git a/games/mgba/README b/games/mgba/README
index 20c471d19e..58dcaf9ff0 100644
--- a/games/mgba/README
+++ b/games/mgba/README
@@ -1,15 +1,3 @@
mGBA is an emulator for running Game Boy Advance games. It aims to be
faster and more accurate than many existing Game Boy Advance
emulators, as well as adding features that other emulators lack.
-
-The following optional dependencies will be automatically detected.
-
-* SDL2
-* libedit (for the command-line debugger)
-* ffmpeg
-* Qt5
-
-If you have Qt 5, then you can build the standalone application with a
-GUI:
-
- QT=on ./mGBA.SlackBuild
diff --git a/games/mgba/doinst.sh b/games/mgba/doinst.sh
index 4110f5514d..625ced33d1 100644
--- a/games/mgba/doinst.sh
+++ b/games/mgba/doinst.sh
@@ -3,3 +3,7 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/games/mgba/mgba.SlackBuild b/games/mgba/mgba.SlackBuild
index 302f61f1b5..21b682123d 100644
--- a/games/mgba/mgba.SlackBuild
+++ b/games/mgba/mgba.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for mgba
# Copyright 2015 Dugan Chen Canada
-# Copyright 2019-2020 Ruoh-Shoei LIN
+# Copyright 2019-2022 Ruoh-Shoei LIN
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=mgba
-VERSION=${VERSION:-0.8.3}
+VERSION=${VERSION:-0.10.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,14 +39,18 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# Set to on to build the Qt GUI. Requires Qt 5.
-QT=${QT:-off}
-
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -83,8 +90,10 @@ cd build
-DCMAKE_INSTALL_DOCDIR=doc/$PRGNAM-$VERSION \
-DCMAKE_INSTALL_LIBDIR:PATH=lib$LIBDIRSUFFIX \
-DMANDIR=man \
- -DUSE_LIBZIP=OFF \
- -DBUILD_QT=${QT} \
+ -DUSE_DISCORD_RPC=OFF \
+ -DENABLE_SCRIPTING=OFF \
+ -DBUILD_UPDATER=OFF \
+ -DBUILD_QT=${QT:-on} \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@@ -97,7 +106,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp CHANGES LICENSE CONTRIBUTING.md PORTING.md README.md README_DE.md \
+cp CONTRIBUTING.md PORTING.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -106,4 +115,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/mgba/mgba.info b/games/mgba/mgba.info
index 2827f7ead8..ffdda4c9f4 100644
--- a/games/mgba/mgba.info
+++ b/games/mgba/mgba.info
@@ -1,10 +1,10 @@
PRGNAM="mgba"
-VERSION="0.8.3"
+VERSION="0.10.2"
HOMEPAGE="https://mgba.io/"
-DOWNLOAD="https://github.com/mgba-emu/mgba/archive/0.8.3/mgba-0.8.3.tar.gz"
-MD5SUM="1143c7d96b7dcd032db10e7407f68761"
+DOWNLOAD="https://github.com/mgba-emu/mgba/archive/0.10.2/mgba-0.10.2.tar.gz"
+MD5SUM="0e2e4916088a1903efd42c58aa0818a9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Ruoh-Shoei LIN"
-EMAIL="lin[dot]ruohshoei [at] gmail [dot] com"
+EMAIL="lin.ruohshoei+sbo at gmail.com"