diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-12 00:28:03 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:52:43 +0700 |
commit | 8d93bcfabe35a584ae25540ef992a1be84ce0bd9 (patch) | |
tree | 4cfec592dff59ab517f15bb0f046f0bc6cb5b303 /games/yae/yae.SlackBuild | |
parent | e1ae146a04df065d6f7746bc524e7bd0970266d9 (diff) |
games/yae: Fix audio, X close button.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/yae/yae.SlackBuild')
-rw-r--r-- | games/yae/yae.SlackBuild | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/games/yae/yae.SlackBuild b/games/yae/yae.SlackBuild index 316c92a7b8f0..991fa3eb03bb 100644 --- a/games/yae/yae.SlackBuild +++ b/games/yae/yae.SlackBuild @@ -6,11 +6,18 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211011 bkw: BUILD=2 +# - fix -current build (-fcommon). +# - link with -laoss, makes audio work on ALSA or pulseaudio systems. +# - new-style icons. +# - update man page. +# - allow X window close button to work. yet another patch. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=yae VERSION=${VERSION:-0.7} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,9 +29,6 @@ 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 @@ -86,6 +90,13 @@ patch -p1 < $CWD/patches/defaultmasterdisk.diff # this package, which Just Work instead of requiring user configuration. patch -p1 < $CWD/patches/defaultromlocation.diff +# *So* annoying: the standard X close button wasn't enabled. If this +# application did the whole "Are you sure you want to quit?" thing, I +# might understand why... but it already exits without confirmation, +# you just have to remember that F2 is the exit key. So why not the +# easily-memorable window close button? +patch -p1 < $CWD/patches/allow_x_window_close.diff + # Try to make 64-bit work. This seems OK, the scanline code seems to # assume sizeof(long)==4, which is wrong on x86_64. Using int (which # is still 4 bytes) fixes the display issues. There still might be @@ -104,6 +115,9 @@ CONFSUB=/usr/share/libtool/config/config.sub cp $CONFSUB . autoreconf -if +SLKCFLAGS+=" -fcommon" + +LIBS="-laoss" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -144,10 +158,20 @@ cat $CWD/${PRGNAM}rc.sample > $PKG/usr/share/$PRGNAM/${PRGNAM}rc.sample mkdir -p $PKG/usr/share/applications cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -# icon created for this build, based on +# icons created for this build, based on # http://www.callapple.org/soft/images/icons/apple.gif +# 20211012 bkw: resized with convert(1), the aspect ratio is +# slightly squashed, but that just makes it look retro... +for i in $CWD/icons/*.png; do + px=$( basename $i | cut -d. -f1 ) + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + cat $i > $dir/$PRGNAM.png +done + mkdir -p $PKG/usr/share/pixmaps -cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/64x64/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $PRGNAM-roms/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.roms |