kgoldrunner, bump to 25.04.0 (#12372)

This commit is contained in:
Schrijvers Luc
2025-05-13 14:51:55 +02:00
committed by GitHub
parent 989f21c537
commit 951c15a157

View File

@@ -8,7 +8,7 @@ COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kgoldrunner-$portVersion.tar.xz"
CHECKSUM_SHA256="4956cb028ef381fbbe57ee88b80ef4ad5a9f00037f6f0e920118f0aed240d972"
CHECKSUM_SHA256="5bceca5556c6c8600512ca889b399d4a567068378f5f0b07cdaebd97a648bf1e"
SOURCE_DIR="kgoldrunner-$portVersion"
ADDITIONAL_FILES="kgoldrunner.rdef.in"
@@ -17,7 +17,7 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kgoldrunner$secondaryArchSuffix = $portVersion
app:KGoldRunner$secondaryArchSuffix = $portVersion
app:KGoldRunner = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -105,6 +105,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()
@@ -126,17 +128,17 @@ INSTALL()
mv $appsDir/kgoldrunner $appsDir/KGoldRunner
local APP_SIGNATURE="application/x-vnd.kde-kgoldrunner"
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-kgoldrunner"
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/kgoldrunner.rdef.in > kgoldrunner.rdef
addResourcesToBinaries kgoldrunner.rdef $appsDir/KGoldRunner