summaryrefslogtreecommitdiffstats
path: root/games/fs-uae
diff options
context:
space:
mode:
Diffstat (limited to 'games/fs-uae')
-rw-r--r--games/fs-uae/fs-uae.SlackBuild16
-rw-r--r--games/fs-uae/fs-uae.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/games/fs-uae/fs-uae.SlackBuild b/games/fs-uae/fs-uae.SlackBuild
index 3aa8b4d94e..14ddbb08e4 100644
--- a/games/fs-uae/fs-uae.SlackBuild
+++ b/games/fs-uae/fs-uae.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# SlackBuild script for "fs-uae".
@@ -25,10 +25,13 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=fs-uae
VERSION=${VERSION:-3.0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -93,4 +103,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:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/fs-uae/fs-uae.info b/games/fs-uae/fs-uae.info
index 3f4e454724..2cd75ad93e 100644
--- a/games/fs-uae/fs-uae.info
+++ b/games/fs-uae/fs-uae.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://fs-uae.net/stable/3.0.5/fs-uae-3.0.5.tar.gz"
MD5SUM="14524d7e21a7eb6e3660a8eb1c7ce56b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="SDL2 OpenAL libmpeg2"
+REQUIRES="libmpeg2"
MAINTAINER="CRTS"
EMAIL="crts@gmx.net"