Browse Source

xap/snes9x: Upgraded to snes9x-1.60.

current-20191101
parent
commit
2527599488
4 changed files with 23 additions and 21 deletions
  1. +4
    -0
      xap/snes9x/doinst.sh
  2. +0
    -1
      xap/snes9x/snes9x-1.52-src.tar.bz2.sha1
  3. +1
    -0
      xap/snes9x/snes9x-1.60.tar.gz.sha256
  4. +18
    -20
      xap/snes9x/snes9x.SlackBuild

+ 4
- 0
xap/snes9x/doinst.sh View File

@ -0,0 +1,4 @@
#!/bin/sh
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications 2>/dev/null 2>&1
fi

+ 0
- 1
xap/snes9x/snes9x-1.52-src.tar.bz2.sha1 View File

@ -1 +0,0 @@
fb3957b68fcede882518516094a73ec5bbed76cf snes9x-1.52-src.tar.bz2

+ 1
- 0
xap/snes9x/snes9x-1.60.tar.gz.sha256 View File

@ -0,0 +1 @@
861c8c0ab1d302d9df51e5ac4717a0069b33614a3f22bf3ab17ebf3405e58722 snes9x-1.60.tar.gz

+ 18
- 20
xap/snes9x/snes9x.SlackBuild View File

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010 Damien Goutte-Gattat
# Copyright (C) 2009,2010,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,17 +23,17 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest snes9x sourcecode is available at:
# <http://code.google.com/p/snes9x-gtk/>.
# <https://github.com/snes9xgit/snes9x>.
# Source package infos
NAMESRC=${NAMESRC:-snes9x}
VERSION=${VERSION:-1.52}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.bz2}
WGET=${WGET:-http://snes9x-gtk.googlecode.com/files/$ARCHIVE}
VERSION=${VERSION:-1.60}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/snes9xgit/snes9x/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-snes9x}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -74,7 +74,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -82,23 +82,21 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME/gtk
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
LDFLAGS="-lXext -lX11 -ldl" \
./configure \
--prefix=/usr \
--with-gtk \
--with-opengl
make -j $JOBS
make install-strip DESTDIR=$PKG
meson --prefix /usr build .
ninja -j $JOBS -C build
DESTDIR=$PKG ninja -C build install
# Strip binary
strip --strip-unneeded $PKG/usr/bin/snes9x-gtk
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS doc/{LICENSE,README} \
../unix/docs/readme_unix.html ../docs/* $PKG/usr/doc/$NAMEPKG-$VERSION
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS ../LICENSE ../README.md ../docs/* \
../unix/docs/readme_unix.html $PKG/usr/doc/$NAME
# Copy slack-desc file
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG


Loading…
Cancel
Save