summaryrefslogtreecommitdiffstats
path: root/games/higan/higan.SlackBuild
diff options
context:
space:
mode:
author B. Watson2021-11-02 05:14:37 +0100
committer Willy Sudiarto Raharjo2021-12-04 04:08:53 +0100
commitf1bed889b712aadcfcf4658b1bfe6e69de34b0b7 (patch)
tree894360f6c9e2d445625f32e700501b48f2a70427 /games/higan/higan.SlackBuild
parent58b4dbfd8c5bd33d69da5e7b0f0b9c6df37395a6 (diff)
downloadslackbuilds-f1bed889b712aadcfcf4658b1bfe6e69de34b0b7.tar.gz
games/higan: Downgrade to version 106.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/higan/higan.SlackBuild')
-rw-r--r--games/higan/higan.SlackBuild55
1 files changed, 35 insertions, 20 deletions
diff --git a/games/higan/higan.SlackBuild b/games/higan/higan.SlackBuild
index f87d355ba2..8ec2caf768 100644
--- a/games/higan/higan.SlackBuild
+++ b/games/higan/higan.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Slackware build script for higan
@@ -27,6 +27,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20211101 bkw: v106 BUILD=3
+# - revert to v106! someone other than me upgraded this for higan
+# v110, but it turns out that v110 wouldn't actually play any games
+# (UI would start up, but no way to map controllers). unless/until I
+# straighten this out, this will remain at v106, which I've actually
+# successfully played games with.
+# - new-style icons.
+# - better .desktop files.
+
# 20200907 bkw: upstream source moved and changed to .tar.gz, get
# rid of p7zip dependency. BUILD=2.
# 20200529 bkw: add "can't update version" note to README.
@@ -34,7 +43,7 @@
# This update would not have happened without assistance and moral support
# from Yossi Ne'eman. Thanks!
# - Take over maintenance.
-# - Update for v110.
+# - Update for v106.
# - Use the gtk frontend, not the *broken* qt one.
# - Make OpenAL dep optional & autodetected (and OPENAL=no to force-disable).
# - Add OSS (default no) and PULSE (default yes) env vars.
@@ -46,13 +55,10 @@
# - Add man pages. Note to SBo admins: please don't remove my *.rst man
# page sources!
-cd $(dirname $0) ; CWD=$(pwd)
-
PRGNAM=higan
-VERSION=${VERSION:-110}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-106}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
-PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -62,14 +68,12 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -112,9 +116,7 @@ patch -p1 -i $CWD/higan-paths.diff
# 20181212 bkw: audio system stuff. Upstream doesn't give us a way to
# disable these on the make command line, but hacking this file works:
-HACKFILE=higan/target-higan/GNUmakefile
-
-sed 's|/usr/local/lib/qt5/bin/moc|moc-qt5|' -i hiro/GNUmakefile
+HACKFILE=higan/target-tomoko/GNUmakefile
# Who actually uses OSS?
if [ "${OSS:-no}" = "no" ]; then
@@ -142,13 +144,13 @@ CXXFLAGS="$SLKCFLAGS" \
make -C icarus \
prefix=/usr \
platform=linux \
- hiro=qt5
+ hiro=gtk
CXXFLAGS="$SLKCFLAGS" \
make -C $PRGNAM \
prefix=/usr \
platform=linux \
- hiro=qt5
+ hiro=gtk
mkdir -p $PKG/usr/games \
$PKG/usr/share/applications \
@@ -156,9 +158,20 @@ mkdir -p $PKG/usr/games \
$PKG/usr/share/pixmaps
install -s -m 755 $PRGNAM/out/$PRGNAM icarus/out/icarus $PKG/usr/games/
-install -m 644 $PRGNAM/target-higan/resource/$PRGNAM.desktop $PKG/usr/share/applications/
-install -m 644 $PRGNAM/target-higan/resource/$PRGNAM.png $PKG/usr/share/pixmaps/
-cp -dr $PRGNAM/System/* $PKG/usr/share/$PRGNAM/
+cp -dr $PRGNAM/systems/* $PKG/usr/share/$PRGNAM/
+
+for px in 16 32 48 64 128; do
+ size=${px}x${px}
+ dir=$PKG/usr/share/icons/hicolor/$size/apps
+ mkdir -p $dir
+ convert -resize $size $PRGNAM/data/$PRGNAM.png $dir/$PRGNAM.png
+ convert -resize $size icarus/data/icarus.png $dir/icarus.png
+done
+
+for i in $PRGNAM icarus; do
+ ln -s ../icons/hicolor/48x48/apps/$i.png $PKG/usr/share/pixmaps/$i.png
+ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+done
# Man pages by B. Watson. higan.6 is basically the higan-cli.md from the
# git repo, reformatted as RST & converted to a man page. icarus.6 was
@@ -168,8 +181,10 @@ for i in $PRGNAM icarus; do
gzip -9c < $CWD/$i.6 > $PKG/usr/man/man6/$i.6.gz
done
+# Sadly there are no docs in v106. I found a docs/ dir in git, but it's not
+# in the release 7z archive. Apparently this is because the git archive is
+# somehow unofficial...?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -177,4 +192,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
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}