games/vbam: Updated for version 2.1.5.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-07 22:35:03 -05:00 committed by Willy Sudiarto Raharjo
parent 7cfdec026a
commit e2040b5894
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 22 additions and 9 deletions

View file

@ -9,6 +9,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230107 bkw: update for v2.1.5.
# 20211117 bkw: note to self: there's been recent activity in
# upstream's git. If another 6-12 months goes by without a release,
# consider updating this for the latest git.
@ -55,8 +57,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vbam
VERSION=${VERSION:-2.1.4}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -110,6 +112,14 @@ 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 {} \+
# 20230107 bkw: doubleplusungood:
# sbrun: WARNING: files altered outside the sandbox:
# u /root/.gnupg/trustdb.gpg
# I don't know why it's doing this, but this will prevent it.
export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache}
mkdir -p fakehome
export HOME=$( pwd )/fakehome
# if both wx(Python|GTK) 2 and 3 are installed, /usr/bin/wx-config
# is a symlink to the config for whichever was installed last. Avoid
# confusion, force the correct version.
@ -176,21 +186,24 @@ cd build
make install DESTDIR=$PKG
cd ..
# 20230107 bkw: this gets installed in the wrong place in 2.1.5.
[ -e $PKG/usr/bin/$SRCNAM ] && \
mv $PKG/usr/bin/$SRCNAM $PKG/usr/games && \
rmdir $PKG/usr/bin
strip $PKG/usr/games/*
gzip $PKG/usr/man/man6/$PRGNAM.6
gzip $PKG/usr/man/man6/*.6
mkdir -p $PKG/install
if [ -x $PKG/usr/games/$SRCNAM ]; then
gzip $PKG/usr/man/man6/$SRCNAM.6
# in case someone's missing /usr/games from $PATH:
sed -i 's,^Exec=,&/usr/games/,' $PKG/usr/share/applications/*desktop
# old-style windowmanagers might need this:
mkdir -p $PKG/usr/share/pixmaps
ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
ln -s ../icons/hicolor/48x48/apps/$SRCNAM.png $PKG/usr/share/pixmaps/$SRCNAM.png
# only need the doinst.sh if the WX GUI was built.
cat $CWD/doinst.sh > $PKG/install/doinst.sh

View file

@ -1,8 +1,8 @@
PRGNAM="vbam"
VERSION="2.1.4"
VERSION="2.1.5"
HOMEPAGE="http://vba-m.com/"
DOWNLOAD="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v2.1.4/visualboyadvance-m-2.1.4.tar.gz"
MD5SUM="394119c22b531bf0ca79ffc7717057d1"
DOWNLOAD="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v2.1.5/visualboyadvance-m-2.1.5.tar.gz"
MD5SUM="98842ccfcbe1e0eacaba0a3cc0a97298"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""