diff options
-rw-r--r-- | games/eureka/eureka.SlackBuild | 64 | ||||
-rw-r--r-- | games/eureka/eureka.info | 10 |
2 files changed, 39 insertions, 35 deletions
diff --git a/games/eureka/eureka.SlackBuild b/games/eureka/eureka.SlackBuild index f031ef08b6..e44197f39b 100644 --- a/games/eureka/eureka.SlackBuild +++ b/games/eureka/eureka.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for eureka # Copyright 2015 Dugan Chen Canada +# Copyright 2020 B. Watson # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,15 +23,20 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20200415 bkw: +# - take over maintenance +# - i486 => i586 +# - update for v1.24 + PRGNAM=eureka -VERSION=${VERSION:-1.21} -SRCVER=${SRCVER:-121} +VERSION=${VERSION:-1.24} +SRCVER=${VERSION/.} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,8 +47,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -64,43 +70,41 @@ rm -rf eureka-$VERSION-source tar xvf $CWD/eureka-$SRCVER-source.tar.gz cd eureka-$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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# The Makefile should not be setting the owner to root. -sed -i "s/-o root//g" Makefile +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -# And we're installing the icon and desktop file ourselves. -sed -i "s/xdg-/# xdg-/g" Makefile +# Game binaries go in /usr/games. And we're installing the icon and +# desktop file ourselves. +sed -i -e 's,\<bin\>,games,g' \ + -e "s/xdg-/# xdg-/g" \ + Makefile LINKER_FLAGS="\ - -L/usr/X11R6/lib$LIBDIRSUFFIX \ - -L/usr/lib$LIBDIRSUFFIX/eureka \ - -ldl \ - -lXfixes \ - -lXcursor" - -mkdir -p $PKG/usr/bin + -lfltk \ + -lfltk_images \ + -lX11 \ + -ldl \ + -lXfixes \ + -lXcursor" + +mkdir -p $PKG/usr/games make install \ - PREFIX="$PKG/usr" \ - LDFLAGS="$LINKER_FLAGS" + PREFIX="$PKG/usr" \ + LDFLAGS="$LINKER_FLAGS" + +# Binary already stripped, thanks. mkdir -p $PKG/usr/share/applications -cp misc/eureka.desktop $PKG/usr/share/applications +cp misc/$PRGNAM.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/pixmaps -cp misc/eureka.xpm $PKG/usr/share/pixmaps +cp misc/$PRGNAM.xpm $PKG/usr/share/pixmaps mkdir -p $PKG/usr/man/man6 -install -m644 misc/eureka.6 $PKG/usr/man/man6 -gzip -9 $PKG/usr/man/man6/eureka.6 +gzip -9c < misc/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS.txt CHANGES.txt GPL.txt INSTALL.txt README.txt TODO.txt docs/* \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.txt docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/games/eureka/eureka.info b/games/eureka/eureka.info index 113a548af8..18d1513a9f 100644 --- a/games/eureka/eureka.info +++ b/games/eureka/eureka.info @@ -1,10 +1,10 @@ PRGNAM="eureka" -VERSION="1.21" +VERSION="1.24" HOMEPAGE="http://eureka-editor.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/project/eureka-editor/Eureka/1.21/eureka-121-source.tar.gz" -MD5SUM="efa67e2022e70dcb22a2aa2e98542aa4" +DOWNLOAD="http://downloads.sourceforge.net/project/eureka-editor/Eureka/1.24/eureka-124-source.tar.gz" +MD5SUM="690d64ea32b2b4bbe081e2c079936c1f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="fltk" -MAINTAINER="Dugan Chen" -EMAIL="thedoogster [at] gmail [dot] com" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" |