aboutsummaryrefslogtreecommitdiff
path: root/games/stella/stella.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-26 19:26:57 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:24 +0700
commit32cb34b26c7c979c82944eaeaf47cf26003436f4 (patch)
tree35cd59b90eb069ca70fb8d8323bedb9b562d257d /games/stella/stella.SlackBuild
parentb1e728b46a082463fac7020e82f26c6ef3acec3c (diff)
games/stella: Updated for version 6.5.3.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/stella/stella.SlackBuild')
-rw-r--r--games/stella/stella.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/games/stella/stella.SlackBuild b/games/stella/stella.SlackBuild
index a6cd09bfef..601285b238 100644
--- a/games/stella/stella.SlackBuild
+++ b/games/stella/stella.SlackBuild
@@ -8,9 +8,12 @@
# Now maintained by B. Watson <yalhcru@gmail.com>
+# 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.
@@ -53,7 +56,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=stella
-VERSION=${VERSION:-6.4}
+VERSION=${VERSION:-6.5.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -66,9 +69,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
@@ -103,11 +103,7 @@ cd $PRGNAM-$VERSION
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 \
@@ -118,7 +114,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 \
@@ -139,7 +138,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