diff options
author | Arn0 <yth@ythogtha.org> | 2023-09-26 11:02:36 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-27 01:03:46 +0700 |
commit | a255460b52dc7b3b71a622a5400133e3b1db770e (patch) | |
tree | 1aff970b5f48c5be1979e0a2e4bb9d26f95aa0a5 /games | |
parent | bc10c35c2c326b471b4737f3b2a301043343d8b3 (diff) |
games/planetblupi: updated for version 1.15.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/planetblupi/planetblupi.SlackBuild | 42 | ||||
-rw-r--r-- | games/planetblupi/planetblupi.info | 8 |
2 files changed, 46 insertions, 4 deletions
diff --git a/games/planetblupi/planetblupi.SlackBuild b/games/planetblupi/planetblupi.SlackBuild index f7b7cdc625ec0..833bba2a9fb4f 100644 --- a/games/planetblupi/planetblupi.SlackBuild +++ b/games/planetblupi/planetblupi.SlackBuild @@ -23,10 +23,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=planetblupi -VERSION=${VERSION:-1.14.2} +VERSION=${VERSION:-1.15.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +BINDIR=/usr/games if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -79,12 +80,51 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +## slackware's SDL2_ttf is outdated, using more recent one +tar xvf $CWD/SDL_ttf-release-2.20.2.tar.gz +pushd SDL_ttf-release-2.20.2 +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 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release .. + make + mkdir -p $PKG/usr/share/planetblupi + cp -a libSDL2_ttf*.so* $PKG/usr/share/planetblupi +cd .. +cp -a SDL_ttf.h ../src/ +export CMAKE_LIBRARY_PATH=$PKG/usr/share/planetblupi +popd +sed -i 's/<SDL_ttf.h>/"SDL_ttf.h"/' src/text.cxx +# planetblupi expects to find its files in (binary path)/../share/planetblupi +# Hence we are installing planetblupi binary in /usr/libexec +# and a shell wrapper in /usr/games. +BINDIR=/usr/libexec +mkdir -p $PKG/usr/games +cat <<EOF > $PKG/usr/games/planetblupi +#!/bin/bash +export LD_LIBRARY_PATH=/usr/share/planetblupi:\$LD_LIBRARY_PATH +exec "$BINDIR/planetblupi" "$@" +EOF +chmod 755 $PKG/usr/games/planetblupi +## End of SDL2_ttf block + mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ + -DCMAKE_INSTALL_BINDIR:PATH=$BINDIR \ + -Wno-dev \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG diff --git a/games/planetblupi/planetblupi.info b/games/planetblupi/planetblupi.info index 564c7a3a271ad..38db5bb805a98 100644 --- a/games/planetblupi/planetblupi.info +++ b/games/planetblupi/planetblupi.info @@ -1,8 +1,10 @@ PRGNAM="planetblupi" -VERSION="1.14.2" +VERSION="1.15.0" HOMEPAGE="http://www.blupi.org/" -DOWNLOAD="https://github.com/blupi-games/planetblupi/archive/v1.14.2/planetblupi-1.14.2.tar.gz" -MD5SUM="f319de45d50d4dbc7cf2ea626f24a431" +DOWNLOAD="https://github.com/blupi-games/planetblupi/archive/v1.15.0/planetblupi-1.15.0.tar.gz \ + https://github.com/libsdl-org/SDL_ttf/archive/release-2.20.2/SDL_ttf-release-2.20.2.tar.gz" +MD5SUM="25820360b1f778ff8232c63a6cc4e337 \ + b584f806d65e9c5ced69b99b12828bee" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="argagg SDL_kitchensink" |