summaryrefslogtreecommitdiffstats
path: root/games/vectoroids
diff options
context:
space:
mode:
Diffstat (limited to 'games/vectoroids')
-rw-r--r--games/vectoroids/vectoroids.SlackBuild43
-rw-r--r--games/vectoroids/vectoroids.info8
2 files changed, 35 insertions, 16 deletions
diff --git a/games/vectoroids/vectoroids.SlackBuild b/games/vectoroids/vectoroids.SlackBuild
index ccf58afd80..6219dd140c 100644
--- a/games/vectoroids/vectoroids.SlackBuild
+++ b/games/vectoroids/vectoroids.SlackBuild
@@ -6,6 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20250614 bkw: update for v1.1.2. this means SDL2, which lacks .s3m
+# (mod) support on Slackware so I had to convert decision.s3m to an
+# .ogg (with milkytracker and oggenc), then patch the code to load
+# the .ogg.
+
# 20230107 bkw: BUILD=3, add doinst.sh, fix man page permission.
# 20211016 bkw: BUILD=2
# - add icons and .desktop
@@ -13,8 +18,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vectoroids
-VERSION=${VERSION:-1.1.0}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-1.1.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -37,16 +42,12 @@ 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
+elif [ "$ARCH" = "x86_64" -o "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
fi
set -e
@@ -55,15 +56,25 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+
+# 20250614 bkw: the git history is included in the tarball, and it's
+# about 2.5x the size of the actual source. Don't waste time/space
+# extracting it.
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz --exclude='*/.git/*'
+
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 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
# Get rid of cruft accidentally left in the distribution tarball
rm -rf data/images/.xvpics
+# 20250614 bkw: PV never responded to my request to add mod support
+# to 15.0's SDL2, and at this late date I wouldn't expect him to.
+# Use an .ogg version of the soundtrack.
+sed -i '/mus_game_name/s,s3m,ogg,' $PRGNAM.c
+
# Can't just override CFLAGS...
sed -i -e "s/-O2/$SLKCFLAGS/" Makefile
@@ -76,6 +87,11 @@ make install PREFIX=$PKG/usr BIN_PREFIX=$PKG/usr/games
chmod 644 $PKG/usr/man/man6/*.6
gzip -9 $PKG/usr/man/man6/*.6
+# 20250614 bkw: put the converted music in the package. Thought about
+# deleting the original .s3m, but it's small, and it's the "source" for
+# the .ogg.
+cat $CWD/decision.ogg > $PKG/usr/share/vectoroids/music/decision.ogg
+
# Upstream's icon.png is barely visible due to being vector
# drawings on a transparent background. I made a hopefully nicer
# icon like so:
@@ -99,9 +115,10 @@ ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp *.txt $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp *.txt $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/games/vectoroids/vectoroids.info b/games/vectoroids/vectoroids.info
index b375a8a9fe..81b71417aa 100644
--- a/games/vectoroids/vectoroids.info
+++ b/games/vectoroids/vectoroids.info
@@ -1,8 +1,10 @@
PRGNAM="vectoroids"
-VERSION="1.1.0"
+VERSION="1.1.2"
HOMEPAGE="http://www.newbreedsoftware.com/vectoroids/"
-DOWNLOAD="ftp://ftp.tuxpaint.org/unix/x/vectoroids/src/vectoroids-1.1.0.tar.gz"
-MD5SUM="c63ce56b09aa7da9a6e95d804e9ee314"
+DOWNLOAD="https://tuxpaint.org/ftp/unix/x/vectoroids/src/vectoroids-1.1.2.tar.gz \
+ https://slackware.uk/~urchlay/src/decision.ogg"
+MD5SUM="12e4573caac77c1f5768367d25d43304 \
+ 8f9a78bb9ce1ad53799613a3ac199dd0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""