diff options
Diffstat (limited to 'games/eureka')
-rw-r--r-- | games/eureka/README | 12 | ||||
-rw-r--r-- | games/eureka/eureka.SlackBuild | 53 | ||||
-rw-r--r-- | games/eureka/eureka.info | 8 |
3 files changed, 43 insertions, 30 deletions
diff --git a/games/eureka/README b/games/eureka/README index 77b59d2af3..a45c8836f7 100644 --- a/games/eureka/README +++ b/games/eureka/README @@ -1,6 +1,8 @@ -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. +eureka (DOOM level editor) -Please see /usr/doc/eureka-1.07/INSTALL.txt for information on how Eureka -looks for IWADs. +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/SETUP.txt for information on how +Eureka looks for IWADs. diff --git a/games/eureka/eureka.SlackBuild b/games/eureka/eureka.SlackBuild index e44197f39b..b9da7267a7 100644 --- a/games/eureka/eureka.SlackBuild +++ b/games/eureka/eureka.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for eureka @@ -23,16 +23,28 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230531 bkw: remove unused SLKCFLAGS and LIBDIRSUFFIX variables. + +# 20230108 bkw: BUILD=2 +# - strip binary +# - keep only useful parts of INSTALL.txt +# - new-style icon + +# 20200717 bkw: update for v1.27b + # 20200415 bkw: # - take over maintenance # - i486 => i586 # - update for v1.24 +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=eureka -VERSION=${VERSION:-1.24} +VERSION=${VERSION:-1.27b} SRCVER=${VERSION/.} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -42,24 +54,16 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM 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 - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi +# fltk-config knows the right flags and lib dir, no SLKCFLAGS or LIBDIRSUFFIX. set -e @@ -67,7 +71,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf eureka-$VERSION-source -tar xvf $CWD/eureka-$SRCVER-source.tar.gz +tar xvf $CWD/eureka-$SRCVER-source.tar.gz || \ +tar xvf $CWD/eureka-$VERSION-source.tar.gz cd eureka-$VERSION-source chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ @@ -80,8 +85,10 @@ sed -i -e 's,\<bin\>,games,g' \ Makefile LINKER_FLAGS="\ + -Wl,-s \ -lfltk \ -lfltk_images \ + -lfltk_gl \ -lX11 \ -ldl \ -lXfixes \ @@ -92,18 +99,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 @@ -112,4 +123,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/eureka/eureka.info b/games/eureka/eureka.info index 18d1513a9f..cad591d7a6 100644 --- a/games/eureka/eureka.info +++ b/games/eureka/eureka.info @@ -1,10 +1,10 @@ PRGNAM="eureka" -VERSION="1.24" +VERSION="1.27b" HOMEPAGE="http://eureka-editor.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/project/eureka-editor/Eureka/1.24/eureka-124-source.tar.gz" -MD5SUM="690d64ea32b2b4bbe081e2c079936c1f" +DOWNLOAD="https://downloads.sourceforge.net/project/eureka-editor/Eureka/1.27/eureka-1.27b-source.tar.gz" +MD5SUM="ded6495c09e23bfe55513eb47abf17ea" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="fltk" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" |