kjumpingcube, bump to 25.04.0 (#12363)

This commit is contained in:
Schrijvers Luc
2025-05-12 14:50:54 +02:00
committed by GitHub
parent f62698b015
commit d0d3ed2388

View File

@@ -7,7 +7,7 @@ COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kjumpingcube-$portVersion.tar.xz"
CHECKSUM_SHA256="42481586690eca18a7625f3c51f1a706d8587e75287263bc4b90bcabf2fa5f03"
CHECKSUM_SHA256="9e6fbea7888f1922400c88f6a8508bb4009cec78c02ba3691475cd71fa5a1a15"
SOURCE_DIR="kjumpingcube-$portVersion"
ADDITIONAL_FILES="kjumpingcube.rdef.in"
@@ -16,7 +16,7 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kjumpingcube$secondaryArchSuffix = $portVersion
app:KJumpingCube$secondaryArchSuffix = $portVersion
app:KJumpingCube = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -100,8 +100,8 @@ BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt
cmd:msgmerge
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
@@ -112,6 +112,8 @@ PATCH()
sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt
# remove dbus
sed -e '/KDBusService service;/d' -i src/main.cpp
# use Haiku's icon theme
sed -e 's,\ KIconTheme::initTheme();,\// KIconTheme::initTheme();,g' -i src/main.cpp
}
BUILD()
@@ -133,17 +135,17 @@ INSTALL()
mv $appsDir/kjumpingcube $appsDir/KJumpingCube
local APP_SIGNATURE="application/x-vnd.kde-kjumpingcube"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.kde-kjumpingcube"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/kjumpingcube.rdef.in > kjumpingcube.rdef
addResourcesToBinaries kjumpingcube.rdef $appsDir/KJumpingCube