summaryrefslogtreecommitdiffstats
path: root/system/kegs/kegs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/kegs/kegs.SlackBuild')
-rw-r--r--system/kegs/kegs.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/system/kegs/kegs.SlackBuild b/system/kegs/kegs.SlackBuild
index 4c7ce438f0..58bc24480a 100644
--- a/system/kegs/kegs.SlackBuild
+++ b/system/kegs/kegs.SlackBuild
@@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230918 bkw: update for v1.29, binary in /usr/games, section 6 manpage.
+# 20221228 bkw: update for v1.16.
+
# 20210825 bkw: update for v1.12.
# - upstream got rid of to_pro and partls, so their man pages are
# also gone now.
@@ -34,7 +37,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kegs
-VERSION=${VERSION:-1.12}
+VERSION=${VERSION:-1.29}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -82,13 +85,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM.$VERSION
-tar xvf $CWD/$PRGNAM.$VERSION.tar.gz \
- --exclude '*/KEGSMAC.app' \
- --exclude '*/xkegs'
+unzip $CWD/$PRGNAM.$VERSION.zip -x '*/KEGSMAC.app/*' '*/xkegs' '*.exe'
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 {} +
# device name for joysticks has changed for the 21st century.
sed -i 's,/dev/js,/dev/input/js,' src/joystick_driver.c
@@ -101,6 +102,7 @@ sed -i 's,/dev/js,/dev/input/js,' src/joystick_driver.c
# for kegs *actually says* you can close the main KEGS window to quit,
# *and you can't fucking close it* without this patch. Apologies if I
# sound a bit strident, but...
+# 20230918 bkw: patch still applies (with fuzz) & works on 1.29.
patch -p1 < $CWD/allow_window_close.diff
cd src
@@ -111,14 +113,14 @@ cd -
# No install target, just stick it all where it goes.
mkdir -p \
- $PKG/usr/bin \
+ $PKG/usr/games \
$PKG/usr/libexec \
$PKG/usr/share/pixmaps \
$PKG/usr/share/applications \
$PKG/usr/share/$PRGNAM \
- $PKG/usr/man/man1
+ $PKG/usr/man/man6
install -s -m0755 x$PRGNAM $PKG/usr/libexec/
-install -m0755 $CWD/x$PRGNAM.sh $PKG/usr/bin/x$PRGNAM
+install -m0755 $CWD/x$PRGNAM.sh $PKG/usr/games/x$PRGNAM
install -m0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
install -m0644 $CWD/config.$PRGNAM.default $PKG/usr/share/$PRGNAM
@@ -141,19 +143,19 @@ cp -a [A-Z]*.gz $PKG/usr/share/$PRGNAM/
# Man pages are specific to the SlackBuild, though I've sent
# them upstream for consideration.
-for file in $CWD/man/*.1; do
+for file in $CWD/man/*.6; do
sed "s/@VERSION@/$VERSION/g" $file \
| gzip -9c \
- > $PKG/usr/man/man1/$( basename $file ).gz
+ > $PKG/usr/man/man6/$( basename $file ).gz
done
# Half the supplied documentation refers to it as "kegs" and
# the other half calls it "xkegs". To avoid confusion:
-ln -s x$PRGNAM.1.gz $PKG/usr/man/man1/$PRGNAM.1.gz
-ln -s x$PRGNAM $PKG/usr/bin/$PRGNAM
+ln -s x$PRGNAM.6.gz $PKG/usr/man/man6/$PRGNAM.6.gz
+ln -s x$PRGNAM $PKG/usr/games/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-install -m0644 *.txt $PKG/usr/doc/$PRGNAM-$VERSION
+install -m0644 doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install