summaryrefslogtreecommitdiff
path: root/games/snes9x/snes9x.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-10-15 19:00:40 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-22 08:47:29 +0700
commit9c6c81d52ce439dc091fb336578eed2e121ceb83 (patch)
tree0406e275c614e44e1c58c0952653074fa046f530 /games/snes9x/snes9x.SlackBuild
parent52a96a72d6a96a89aecc643e56d614f6a6fbe819 (diff)
downloadslackbuilds-9c6c81d52ce439dc091fb336578eed2e121ceb83.tar.gz
games/snes9x: Updated for version 1.54.1.
Diffstat (limited to 'games/snes9x/snes9x.SlackBuild')
-rw-r--r--games/snes9x/snes9x.SlackBuild34
1 files changed, 12 insertions, 22 deletions
diff --git a/games/snes9x/snes9x.SlackBuild b/games/snes9x/snes9x.SlackBuild
index 1f54a10180..e33af85749 100644
--- a/games/snes9x/snes9x.SlackBuild
+++ b/games/snes9x/snes9x.SlackBuild
@@ -6,9 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20161015 bkw: update for 1.54.1. script has changed enough that it
+# can't build 1.53 any more.
+
PRGNAM=snes9x
-VERSION=${VERSION:-1.53}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.54.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -43,9 +46,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION-src
-tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
-cd $PRGNAM-$VERSION-src
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -53,16 +56,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Patch avoids crashes caused by the 'open recent' UI menu. Not been
-# able to reproduce the crash myself, but all the patch does is check
-# a pointer to make sure it's not null, before using it (can't see how
-# that could hurt anything).
-# Patch came from here:
-# https://git.archlinux.org/svntogit/community.git/plain/snes9x/repos/community-i686/snes9x-fix-crash.patch
-
-patch -p1 < $CWD/snes9x-fix-crash.patch
-
cd gtk
+./autogen.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -79,14 +75,8 @@ make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/man/man6
gzip -9c $CWD/snes9x-gtk.6 > $PKG/usr/man/man6/snes9x-gtk.6.gz
-
-cd $PKG/usr/man/man6
- ln -s $PRGNAM-gtk.6.gz $PRGNAM.gz
-cd -
-
-cd $PKG/usr/games
- ln -s $PRGNAM-gtk $PRGNAM
-cd -
+ln -s $PRGNAM-gtk.6.gz $PKG/usr/man/man6/$PRGNAM.6.gz
+ln -s $PRGNAM-gtk $PKG/usr/games/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/${PRGNAM}_original_docs
cp doc/* $PKG/usr/doc/$PRGNAM-$VERSION