summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author B. Watson2021-10-20 20:06:42 +0200
committer Willy Sudiarto Raharjo2021-10-29 12:07:20 +0200
commitc11a44608267a4df27b7721533c42102d2ee953b (patch)
tree5127f38ff94a3e813f284f01a34e8a7789e72dee /games
parent74ba4c12fe6a376c6ed8187688b561c9a8f6c750 (diff)
downloadslackbuilds-c11a44608267a4df27b7721533c42102d2ee953b.tar.gz
games/oblige-legacy4: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/oblige-legacy4/README2
-rw-r--r--games/oblige-legacy4/doinst.sh5
-rw-r--r--games/oblige-legacy4/icons/128.pngbin0 -> 27762 bytes
-rw-r--r--games/oblige-legacy4/icons/16.pngbin0 -> 12889 bytes
-rw-r--r--games/oblige-legacy4/icons/32.pngbin0 -> 14272 bytes
-rw-r--r--games/oblige-legacy4/icons/48.pngbin0 -> 16470 bytes
-rw-r--r--games/oblige-legacy4/icons/64.pngbin0 -> 19103 bytes
-rw-r--r--games/oblige-legacy4/oblige-legacy4.620
-rw-r--r--games/oblige-legacy4/oblige-legacy4.SlackBuild31
-rw-r--r--games/oblige-legacy4/oblige-legacy4.desktop2
-rw-r--r--games/oblige-legacy4/oblige-legacy4.info2
-rw-r--r--games/oblige-legacy4/oblige-legacy4.pngbin15879 -> 0 bytes
-rw-r--r--games/oblige-legacy4/oblige-legacy4.pod6
-rw-r--r--games/oblige-legacy4/slack-desc10
14 files changed, 48 insertions, 30 deletions
diff --git a/games/oblige-legacy4/README b/games/oblige-legacy4/README
index 7ef33f66e8..d10148e57b 100644
--- a/games/oblige-legacy4/README
+++ b/games/oblige-legacy4/README
@@ -1,3 +1,5 @@
+oblige-legacy4 (random level generator for classic FPS games)
+
OBLIGE v4 is a random level generator for various classic games,
including DOOM, DOOM II, Heretic, Hexen, and Quake. The goal is to
produce high quality levels which are fun to play.
diff --git a/games/oblige-legacy4/doinst.sh b/games/oblige-legacy4/doinst.sh
index 4e8ba7071d..3e5691a052 100644
--- a/games/oblige-legacy4/doinst.sh
+++ b/games/oblige-legacy4/doinst.sh
@@ -2,3 +2,8 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/games/oblige-legacy4/icons/128.png b/games/oblige-legacy4/icons/128.png
new file mode 100644
index 0000000000..a6ee73f133
--- /dev/null
+++ b/games/oblige-legacy4/icons/128.png
Binary files differ
diff --git a/games/oblige-legacy4/icons/16.png b/games/oblige-legacy4/icons/16.png
new file mode 100644
index 0000000000..2616f57ed2
--- /dev/null
+++ b/games/oblige-legacy4/icons/16.png
Binary files differ
diff --git a/games/oblige-legacy4/icons/32.png b/games/oblige-legacy4/icons/32.png
new file mode 100644
index 0000000000..b2efe3c78e
--- /dev/null
+++ b/games/oblige-legacy4/icons/32.png
Binary files differ
diff --git a/games/oblige-legacy4/icons/48.png b/games/oblige-legacy4/icons/48.png
new file mode 100644
index 0000000000..de8ce27a71
--- /dev/null
+++ b/games/oblige-legacy4/icons/48.png
Binary files differ
diff --git a/games/oblige-legacy4/icons/64.png b/games/oblige-legacy4/icons/64.png
new file mode 100644
index 0000000000..cd6c9874ce
--- /dev/null
+++ b/games/oblige-legacy4/icons/64.png
Binary files differ
diff --git a/games/oblige-legacy4/oblige-legacy4.6 b/games/oblige-legacy4/oblige-legacy4.6
index 1d1042b645..d82dc7a554 100644
--- a/games/oblige-legacy4/oblige-legacy4.6
+++ b/games/oblige-legacy4/oblige-legacy4.6
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
+.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
.\"
.\" Standard preamble:
.\" ========================================================================
@@ -46,7 +46,7 @@
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
@@ -56,12 +56,12 @@
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
-.if (\n(rF:(\n(.g==0)) \{
-. if \nF \{
+.if (\n(rF:(\n(.g==0)) \{\
+. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
-. if !\nF==2 \{
+. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
@@ -133,20 +133,20 @@
.\" ========================================================================
.\"
.IX Title "OBLIGE-LEGACY4 6"
-.TH OBLIGE-LEGACY4 6 "2014-09-25" "4.28b" "SlackBuilds.org"
+.TH OBLIGE-LEGACY4 6 "2021-10-20" "4.28b" "SlackBuilds.org"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
-oblige\-legacy4 \- random level generator for Doom, Doom II, Heretic, Hexen, and Quake
+oblige\-legacy4 \- random level generator for Doom and related games
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
\&\fBoblige\-legacy4\fR [\-options]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
-\&\fBoblige\-legacy4\fR creates a patch \s-1WAD\s0 file for use with Doom or Doom
-\&\s-1II,\s0 containing one or more randomly-generated levels. The generated \s-1WAD\s0
+\&\fBoblige\-legacy4\fR creates a patch \s-1WAD\s0 file for use with Doom, Doom \s-1II,\s0 Heretic, Hexen, or Quake,
+containing one or more randomly-generated levels. The generated \s-1WAD\s0
files are ready to play (no separate node-building pass is needed).
.PP
Normally, \fBoblige\-legacy4\fR is controlled by its \s-1GUI,\s0 but it can be used
@@ -185,7 +185,7 @@ The \fBoblige\-legacy4\fR home page: \fIhttp://oblige\-legacy4.sourceforge.net\f
.SH "LICENSE"
.IX Header "LICENSE"
This program is free software, under the terms of the \s-1GNU\s0 General Public
-License, and comes with \s-1ABSOLUTELY NO WARRANTY. \s0 See the documentation
+License, and comes with \s-1ABSOLUTELY NO WARRANTY.\s0 See the documentation
for more details, or visit http://www.gnu.org/licenses/gpl\-2.0.txt
.SH "AUTHOR"
.IX Header "AUTHOR"
diff --git a/games/oblige-legacy4/oblige-legacy4.SlackBuild b/games/oblige-legacy4/oblige-legacy4.SlackBuild
index d452f3823f..6876cd43e4 100644
--- a/games/oblige-legacy4/oblige-legacy4.SlackBuild
+++ b/games/oblige-legacy4/oblige-legacy4.SlackBuild
@@ -6,6 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211020 bkw: BUILD=3
+# - make the icon transparent
+# - new-style icons (also transparent)
+# - update man page, README, slack-desc slightly
+
# 20170621 bkw: fix build on -current.
# 20140916 bkw: bump BUILD to 2.
@@ -25,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=oblige-legacy4
VERSION=${VERSION:-4.28b}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -37,9 +42,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
@@ -76,11 +78,8 @@ rm -rf ${SRCNAM}-${VERSION}-source
unzip $CWD/$OLDNAM-$SRCVER-source.zip
cd ${SRCNAM}-${VERSION}-source
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Makefile.unixy originally came from the oblige author, I've hacked
# it up to make it work with oblige 4.x and SBo's fltk13.
@@ -102,9 +101,21 @@ make INSTALL_PREFIX=/usr OPTIMISE="$SLKCFLAGS"
make install INSTALL_PREFIX=$PKG/usr
mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+# 128.png was created by extracting oblige.ico, then using the gimp
+# to turn the white background into transparency. The rest were scaled
+# down from that, with convert -resize.
+for i in $CWD/icons/*.png; do
+ px=$( basename $i | cut -d. -f1 )
+ size=${px}x${px}
+ dir=$PKG/usr/share/icons/hicolor/$size/apps
+ mkdir -p $dir
+ cat $i > $dir/$PRGNAM.png
+done
+
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
# man page written for this build
mkdir -p $PKG/usr/man/man6
gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
diff --git a/games/oblige-legacy4/oblige-legacy4.desktop b/games/oblige-legacy4/oblige-legacy4.desktop
index d1fca99d6c..71a7fe8a6f 100644
--- a/games/oblige-legacy4/oblige-legacy4.desktop
+++ b/games/oblige-legacy4/oblige-legacy4.desktop
@@ -3,6 +3,6 @@ Type=Application
Name=Oblige (Legacy Version)
GenericName=Doom/Heretic/Quake Level Generator
Icon=oblige-legacy4
-Exec=oblige-legacy4 %f
+Exec=/usr/games/oblige-legacy4 %f
Terminal=false
Categories=Game;ActionGame;Utility;
diff --git a/games/oblige-legacy4/oblige-legacy4.info b/games/oblige-legacy4/oblige-legacy4.info
index dd803ecd4d..67f4a32c2a 100644
--- a/games/oblige-legacy4/oblige-legacy4.info
+++ b/games/oblige-legacy4/oblige-legacy4.info
@@ -1,7 +1,7 @@
PRGNAM="oblige-legacy4"
VERSION="4.28b"
HOMEPAGE="http://oblige.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/project/oblige/Oblige/4.28/oblige-428b-source.zip"
+DOWNLOAD="https://downloads.sourceforge.net/project/oblige/Oblige/4.28/oblige-428b-source.zip"
MD5SUM="ae89031dcff12958bb866505c266c49f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/games/oblige-legacy4/oblige-legacy4.png b/games/oblige-legacy4/oblige-legacy4.png
deleted file mode 100644
index 7d6b6a0f66..0000000000
--- a/games/oblige-legacy4/oblige-legacy4.png
+++ /dev/null
Binary files differ
diff --git a/games/oblige-legacy4/oblige-legacy4.pod b/games/oblige-legacy4/oblige-legacy4.pod
index d9a1a0e903..3f6ef6cc91 100644
--- a/games/oblige-legacy4/oblige-legacy4.pod
+++ b/games/oblige-legacy4/oblige-legacy4.pod
@@ -3,7 +3,7 @@
=head1 NAME
-oblige-legacy4 - random level generator for Doom, Doom II, Heretic, Hexen, and Quake
+oblige-legacy4 - random level generator for Doom and related games
=head1 SYNOPSIS
@@ -11,8 +11,8 @@ B<oblige-legacy4> [-options]
=head1 DESCRIPTION
-B<oblige-legacy4> creates a patch WAD file for use with Doom or Doom
-II, containing one or more randomly-generated levels. The generated WAD
+B<oblige-legacy4> creates a patch WAD file for use with Doom, Doom II, Heretic, Hexen, or Quake,
+containing one or more randomly-generated levels. The generated WAD
files are ready to play (no separate node-building pass is needed).
Normally, B<oblige-legacy4> is controlled by its GUI, but it can be used
diff --git a/games/oblige-legacy4/slack-desc b/games/oblige-legacy4/slack-desc
index 7b383c187a..5377ae03f4 100644
--- a/games/oblige-legacy4/slack-desc
+++ b/games/oblige-legacy4/slack-desc
@@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
oblige-legacy4: oblige-legacy4 (random level generator for classic FPS games)
oblige-legacy4:
-oblige-legacy4: OBLIGE is a random level generator for various classic games,
-oblige-legacy4: including DOOM, DOOM II, Heretic, and Quake. The goal is to produce
-oblige-legacy4: high quality levels which are fun to play.
-oblige-legacy4:
-oblige-legacy4: This is an older version with support for Heretic and Quake.
+oblige-legacy4: OBLIGE is a random level generator for various classic
+oblige-legacy4: games, including DOOM, DOOM II, Hexen, Heretic, and
+oblige-legacy4: Quake. The goal is to produce high quality levels
+oblige-legacy4: which are fun to play.
oblige-legacy4:
+oblige-legacy4: This is an older version with support for Hexen, Heretic, and Quake.
oblige-legacy4:
oblige-legacy4:
oblige-legacy4: