aboutsummaryrefslogtreecommitdiff
path: root/games/eureka
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-01-08 00:44:20 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:22 +0700
commit688d0dd082f96b1121f0aafdb665a9a14601bf82 (patch)
treea69afc00b5983ff79bedc7478f5a0320863ac5b1 /games/eureka
parent33a179963b655f75f7eec4eee0f83c46029ee062 (diff)
games/eureka: Clean up, add PNG icon.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/eureka')
-rw-r--r--games/eureka/README2
-rw-r--r--games/eureka/eureka.SlackBuild16
2 files changed, 14 insertions, 4 deletions
diff --git a/games/eureka/README b/games/eureka/README
index 5098397fb512..a45c8836f7fb 100644
--- a/games/eureka/README
+++ b/games/eureka/README
@@ -4,5 +4,5 @@ Eureka is a cross-platform DOOM level editor using the FLTK widget
library. It is based on Yadex and provides a new interface, support for
source ports and a 3D preview feature.
-Please see /usr/doc/eureka-1.07/INSTALL.txt for information on how
+Please see /usr/doc/eureka-1.07/SETUP.txt for information on how
Eureka looks for IWADs.
diff --git a/games/eureka/eureka.SlackBuild b/games/eureka/eureka.SlackBuild
index 85bba4722d05..e0a1038a4d87 100644
--- a/games/eureka/eureka.SlackBuild
+++ b/games/eureka/eureka.SlackBuild
@@ -23,6 +23,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230108 bkw: BUILD=2
+# - strip binary
+# - keep only useful parts of INSTALL.txt
+# - new-style icon
+
# 20200717 bkw: update for v1.27b
# 20200415 bkw:
@@ -35,7 +40,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=eureka
VERSION=${VERSION:-1.27b}
SRCVER=${VERSION/.}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -90,6 +95,7 @@ sed -i -e 's,\<bin\>,games,g' \
Makefile
LINKER_FLAGS="\
+ -Wl,-s \
-lfltk \
-lfltk_images \
-lfltk_gl \
@@ -103,18 +109,22 @@ make install \
PREFIX="$PKG/usr" \
LDFLAGS="$LINKER_FLAGS"
-# Binary already stripped, thanks.
-
mkdir -p $PKG/usr/share/applications
cp misc/$PRGNAM.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/share/pixmaps
cp misc/$PRGNAM.xpm $PKG/usr/share/pixmaps
+# 20230108 bkw: new-style icon (just the one).
+mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps
+convert misc/$PRGNAM.xpm $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png
+
mkdir -p $PKG/usr/man/man6
gzip -9c < misc/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+sed -n '/^SETTING UP/,$p' INSTALL.txt > SETUP.txt
+rm -f INSTALL.txt
cp -a *.txt docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild