diff options
Diffstat (limited to 'games/stella')
-rw-r--r-- | games/stella/README | 2 | ||||
-rw-r--r-- | games/stella/stella.SlackBuild | 47 | ||||
-rw-r--r-- | games/stella/stella.info | 10 |
3 files changed, 38 insertions, 21 deletions
diff --git a/games/stella/README b/games/stella/README index ca5936c93b..0272c99746 100644 --- a/games/stella/README +++ b/games/stella/README @@ -1,2 +1,4 @@ +stella (Atari 2600 VCS emulator) + Stella is a multi-platform Atari 2600 VCS emulator released under the GNU General Public License (GPL). diff --git a/games/stella/stella.SlackBuild b/games/stella/stella.SlackBuild index 67528bd016..746c38af04 100644 --- a/games/stella/stella.SlackBuild +++ b/games/stella/stella.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for stella @@ -6,8 +6,18 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. -# Now maintained by B. Watson <yalhcru@gmail.com> +# Now maintained by B. Watson <urchlay@slackware.uk> +# 20240213 bkw: update for v6.7.1. +# 20230109 bkw: update for v6.7. +# 20220610 bkw: update for v6.6, fix doc permissions. + +# 20211026 bkw: we're on -current now, so: +# - update for 6.5.3. +# - use g++ for the compile (clang++ lacks the -Weverything flag). + +# 20210224 bkw: Note to self: do not attempt to upgrade past 6.4, on +# Slackware 14.2. Our g++ *and* clang++ are now too old. # 20201103 bkw: update for 6.4. # 20201027 bkw: update for 6.3. # 20200804 bkw: update for 6.2.1. @@ -47,10 +57,13 @@ # - add MIME type for .a26 # - StartupNotify=false in .desktop +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=stella -VERSION=${VERSION:-6.4} +VERSION=${VERSION:-6.7.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -60,23 +73,23 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -87,14 +100,11 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION-src.tar.xz cd $PRGNAM-$VERSION +chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -# 20170620 bkw: configure checks for gcc 4.7, 5.x, or 6.x. Fails on -current -# because we have 7.x. -#sed -i 's,\[5-6\],[5-9],g' configure - -CC="clang" CXX="clang++" CFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ @@ -105,7 +115,10 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-shared make -make install-strip DESTDIR=$PKG +make install DESTDIR=$PKG + +# 20211026 bkw: install-strip doesn't actually strip... +strip $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/share/pixmaps ln -s \ @@ -126,7 +139,9 @@ cat $CWD/$PRGNAM.xml > $PKG/usr/share/mime/packages/$PRGNAM.xml # add MIME type to .desktop file, and remove startup notification, # which doesn't actually work (at least not in xfce) DESKTOP=$PKG/usr/share/applications/$PRGNAM.desktop -sed -i '/^StartupNotify/s,true,false,' $DESKTOP +sed -i -e '/^StartupNotify/s,true,false,' \ + -e 's,Exec=,&/usr/games/,' \ + $DESKTOP echo 'MimeType=application/x-2600rom;' >> $DESKTOP mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -138,4 +153,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/stella/stella.info b/games/stella/stella.info index f28829c3e8..bea5596596 100644 --- a/games/stella/stella.info +++ b/games/stella/stella.info @@ -1,10 +1,10 @@ PRGNAM="stella" -VERSION="6.4" +VERSION="6.7.1" HOMEPAGE="https://stella-emu.github.io/" -DOWNLOAD="https://github.com/stella-emu/stella/releases/download/6.4/stella-6.4-src.tar.xz" -MD5SUM="a6509ba4c1c45e0d1d9b017ff3c4e545" +DOWNLOAD="https://github.com/stella-emu/stella/releases/download/6.7.1/stella-6.7.1-src.tar.xz" +MD5SUM="335a58bc7692ac65c75bba9d9ec80eab" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="SDL2" +REQUIRES="" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" |