aboutsummaryrefslogtreecommitdiff
path: root/games/eureka
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-08-13 04:15:18 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-08-17 18:14:17 +0700
commit487a51a104c8ac7d77a97a2b1174f34679400607 (patch)
treed89f1bb181bf130f0f24e0aa02c6d36ea3bbecc0 /games/eureka
parentb62f95f5868a10264463e0eb09935cb2cbab9372 (diff)
games/eureka: Updated for version 2.0.2.
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/eureka.SlackBuild54
-rw-r--r--games/eureka/eureka.info6
2 files changed, 28 insertions, 32 deletions
diff --git a/games/eureka/eureka.SlackBuild b/games/eureka/eureka.SlackBuild
index b9da7267a750..1d29c1ec5df0 100644
--- a/games/eureka/eureka.SlackBuild
+++ b/games/eureka/eureka.SlackBuild
@@ -23,6 +23,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240813 bkw: update for v2.0.2.
# 20230531 bkw: remove unused SLKCFLAGS and LIBDIRSUFFIX variables.
# 20230108 bkw: BUILD=2
@@ -40,9 +41,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=eureka
-VERSION=${VERSION:-1.27b}
-SRCVER=${VERSION/.}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.0.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,34 +70,30 @@ set -e
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-$VERSION-source.tar.gz
-cd eureka-$VERSION-source
+SRCDIR=eureka-editor-eureka-$VERSION
+rm -rf $SRCDIR
+tar xvf $CWD/$SRCDIR.tar.gz
+cd $SRCDIR
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 {} \+
-# 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="\
- -Wl,-s \
- -lfltk \
- -lfltk_images \
- -lfltk_gl \
- -lX11 \
- -ldl \
- -lXfixes \
- -lXcursor"
-
-mkdir -p $PKG/usr/games
-make install \
- PREFIX="$PKG/usr" \
- LDFLAGS="$LINKER_FLAGS"
+# Do not use xdg tools to install icon and .desktop, because it
+# doesn't respect DESTDIR.
+sed -i '/install(CODE "exec/,+4d' CMakeLists.txt
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBIN_DIR=/usr/games \
+ -DENABLE_UNIT_TESTS=OFF \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install/strip DESTDIR=$PKG
+cd ..
mkdir -p $PKG/usr/share/applications
cp misc/$PRGNAM.desktop $PKG/usr/share/applications
@@ -114,8 +110,8 @@ 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
+rm -f INSTALL.txt CMakeLists.txt
+cp -a *.md *.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 cad591d7a634..b7badaabf276 100644
--- a/games/eureka/eureka.info
+++ b/games/eureka/eureka.info
@@ -1,8 +1,8 @@
PRGNAM="eureka"
-VERSION="1.27b"
+VERSION="2.0.2"
HOMEPAGE="http://eureka-editor.sourceforge.net/"
-DOWNLOAD="https://downloads.sourceforge.net/project/eureka-editor/Eureka/1.27/eureka-1.27b-source.tar.gz"
-MD5SUM="ded6495c09e23bfe55513eb47abf17ea"
+DOWNLOAD="https://github.com/ioan-chera/eureka-editor/archive/eureka-2.0.2/eureka-editor-eureka-2.0.2.tar.gz"
+MD5SUM="4b7f29bbba547845ab2204b7887cdc59"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fltk"