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>
This commit is contained in:
B. Watson 2024-08-13 04:15:18 -04:00 committed by Willy Sudiarto Raharjo
parent b62f95f586
commit 487a51a104
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 27 additions and 31 deletions

View file

@ -23,6 +23,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20240813 bkw: update for v2.0.2.
# 20230531 bkw: remove unused SLKCFLAGS and LIBDIRSUFFIX variables. # 20230531 bkw: remove unused SLKCFLAGS and LIBDIRSUFFIX variables.
# 20230108 bkw: BUILD=2 # 20230108 bkw: BUILD=2
@ -40,9 +41,8 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=eureka PRGNAM=eureka
VERSION=${VERSION:-1.27b} VERSION=${VERSION:-2.0.2}
SRCVER=${VERSION/.} BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -70,34 +70,30 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf eureka-$VERSION-source SRCDIR=eureka-editor-eureka-$VERSION
tar xvf $CWD/eureka-$SRCVER-source.tar.gz || \ rm -rf $SRCDIR
tar xvf $CWD/eureka-$VERSION-source.tar.gz tar xvf $CWD/$SRCDIR.tar.gz
cd eureka-$VERSION-source cd $SRCDIR
chown -R root:root . chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Game binaries go in /usr/games. And we're installing the icon and # Do not use xdg tools to install icon and .desktop, because it
# desktop file ourselves. # doesn't respect DESTDIR.
sed -i -e 's,\<bin\>,games,g' \ sed -i '/install(CODE "exec/,+4d' CMakeLists.txt
-e "s/xdg-/# xdg-/g" \
Makefile
LINKER_FLAGS="\ mkdir -p build
-Wl,-s \ cd build
-lfltk \ cmake \
-lfltk_images \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-lfltk_gl \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-lX11 \ -DCMAKE_INSTALL_PREFIX=/usr \
-ldl \ -DBIN_DIR=/usr/games \
-lXfixes \ -DENABLE_UNIT_TESTS=OFF \
-lXcursor" -DCMAKE_BUILD_TYPE=Release ..
make
mkdir -p $PKG/usr/games make install/strip DESTDIR=$PKG
make install \ cd ..
PREFIX="$PKG/usr" \
LDFLAGS="$LINKER_FLAGS"
mkdir -p $PKG/usr/share/applications mkdir -p $PKG/usr/share/applications
cp misc/$PRGNAM.desktop $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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
sed -n '/^SETTING UP/,$p' INSTALL.txt > SETUP.txt sed -n '/^SETTING UP/,$p' INSTALL.txt > SETUP.txt
rm -f INSTALL.txt rm -f INSTALL.txt CMakeLists.txt
cp -a *.txt docs/* $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.md *.txt docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="eureka" PRGNAM="eureka"
VERSION="1.27b" VERSION="2.0.2"
HOMEPAGE="http://eureka-editor.sourceforge.net/" HOMEPAGE="http://eureka-editor.sourceforge.net/"
DOWNLOAD="https://downloads.sourceforge.net/project/eureka-editor/Eureka/1.27/eureka-1.27b-source.tar.gz" DOWNLOAD="https://github.com/ioan-chera/eureka-editor/archive/eureka-2.0.2/eureka-editor-eureka-2.0.2.tar.gz"
MD5SUM="ded6495c09e23bfe55513eb47abf17ea" MD5SUM="4b7f29bbba547845ab2204b7887cdc59"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="fltk" REQUIRES="fltk"