aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-02-22 14:23:29 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-27 08:24:35 +0700
commitfce099744a4bc8dc78379985a7a8ae8893750994 (patch)
tree8a191bd06dabccff2320e0dfe082101296df685f
parentd8212f763fa7e8deaebf9ce2351ee00c5bac9c34 (diff)
games/mednaffe: Updated for version 0.9.1.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/mednaffe/README5
-rw-r--r--games/mednaffe/mednaffe.SlackBuild20
-rw-r--r--games/mednaffe/mednaffe.info6
-rw-r--r--games/mednaffe/slack-desc2
4 files changed, 12 insertions, 21 deletions
diff --git a/games/mednaffe/README b/games/mednaffe/README
index ffa06d8ddeb0..720c5160617e 100644
--- a/games/mednaffe/README
+++ b/games/mednaffe/README
@@ -6,10 +6,7 @@ Its main features are:
* It is written in C.
* Available for Linux and Windows.
- * The only dependency is GTK+2 (or GTK+3).
+ * The only dependency is GTK+3.
* GPLv3 licensed.
Note: Mednaffe only works with 1.21.1 or higher versions of mednafen.
-
-By default, mednaffe is built with GTK+2. If you prefer GTK+3, export
-GTK3=yes in the script's environment.
diff --git a/games/mednaffe/mednaffe.SlackBuild b/games/mednaffe/mednaffe.SlackBuild
index 21f1dfe683f0..b0063819fb47 100644
--- a/games/mednaffe/mednaffe.SlackBuild
+++ b/games/mednaffe/mednaffe.SlackBuild
@@ -6,8 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210222 bkw: update for v0.9.1. Upstream dropped support for GTK+2,
+# so got rid of GTKVER environment variable.
+
PRGNAM=mednaffe
-VERSION=${VERSION:-0.8.8}
+VERSION=${VERSION:-0.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,19 +53,10 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-if [ "${GTK3:-no}" = "yes" ]; then
- GTKOPT="--enable-gtk3"
- GTKVER=3
-else
- GTKOPT="--disable-gtk3"
- GTKVER=2
-fi
-
-# --docdir is ignored, have to use nonstandard docsdir in make install.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- $GTKOPT \
+ --docdir="/usr/doc/$PRGNAM-$VERSION" \
--bindir=/usr/games \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -72,13 +66,13 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG docsdir="/usr/doc/$PRGNAM-$VERSION"
+make install-strip DESTDIR=$PKG
# docs already installed, just add this:
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
-sed "s,@GTKVER@,$GTKVER," $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
diff --git a/games/mednaffe/mednaffe.info b/games/mednaffe/mednaffe.info
index 5bb00ceed202..280e2cc7c214 100644
--- a/games/mednaffe/mednaffe.info
+++ b/games/mednaffe/mednaffe.info
@@ -1,8 +1,8 @@
PRGNAM="mednaffe"
-VERSION="0.8.8"
+VERSION="0.9.1"
HOMEPAGE="https://github.com/AmatCoder/mednaffe"
-DOWNLOAD="https://github.com/AmatCoder/mednaffe/releases/download/0.8.8/mednaffe-0.8.8.tar.gz"
-MD5SUM="8beab613db597d53bcc8cd4e62f281eb"
+DOWNLOAD="https://github.com/AmatCoder/mednaffe/releases/download/0.9.1/mednaffe-0.9.1.tar.gz"
+MD5SUM="45e094397c227fc018a1e0f758fd139b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/games/mednaffe/slack-desc b/games/mednaffe/slack-desc
index 3d6e3a71bf76..9815a8a62bbb 100644
--- a/games/mednaffe/slack-desc
+++ b/games/mednaffe/slack-desc
@@ -10,7 +10,7 @@ mednaffe: mednaffe (frontend for mednafen)
mednaffe:
mednaffe: Mednaffe is a GUI front-end for the mednafen emulator.
mednaffe:
-mednaffe: This package was built with GTK+@GTKVER@.
+mednaffe:
mednaffe:
mednaffe:
mednaffe: