granatier, bump to 25.04.0 (#12396)

This commit is contained in:
Schrijvers Luc
2025-05-16 15:52:39 +02:00
committed by GitHub
parent 126081dc15
commit e0552fc680

View File

@@ -5,7 +5,7 @@ COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/granatier-$portVersion.tar.xz"
CHECKSUM_SHA256="ccf307af184561967f60d899906d98c740fbfd301a34ff31dce4a1800d3fb0f6"
CHECKSUM_SHA256="6f1b7bc07edd1016fb5efb2dab11725db2676695427829d2bbc04dfe502212cd"
SOURCE_DIR="granatier-$portVersion"
ADDITIONAL_FILES="granatier.rdef.in"
@@ -14,7 +14,7 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
granatier$secondaryArchSuffix = $portVersion
app:Granatier$secondaryArchSuffix = $portVersion
app:Granatier = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -112,6 +112,8 @@ PATCH()
sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt
# remove dbus service
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()
@@ -136,17 +138,17 @@ INSTALL()
mv $appsDir/granatier $appsDir/Granatier
local APP_SIGNATURE="application/x-vnd.kde-granatier"
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-granatier"
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/granatier.rdef.in > granatier.rdef
addResourcesToBinaries granatier.rdef $appsDir/Granatier