mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
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:
parent
b62f95f586
commit
487a51a104
2 changed files with 27 additions and 31 deletions
|
@ -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
|
||||
# Do not use xdg tools to install icon and .desktop, because it
|
||||
# doesn't respect DESTDIR.
|
||||
sed -i '/install(CODE "exec/,+4d' CMakeLists.txt
|
||||
|
||||
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"
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue