kreversi, bump to 25.04.0 (#12358)

This commit is contained in:
Schrijvers Luc
2025-05-12 11:00:43 +02:00
committed by GitHub
parent da2e6a4291
commit 2505c2dd0c

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/kreversi-$portVersion.tar.xz"
CHECKSUM_SHA256="0a4b084631ec60deebfe048be87e11935f8eb2bc31f919428696798811cc9597"
CHECKSUM_SHA256="5ede769f9122483c0dcb7a3ecd4bfc0d6541fd8837d6e648ef761c975ccc9005"
SOURCE_DIR="kreversi-$portVersion"
ADDITIONAL_FILES="kreversi.rdef.in"
@@ -17,7 +17,7 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kreversi$secondaryArchSuffix = $portVersion
app:KReversi$secondaryArchSuffix = $portVersion
app:KReversi = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -122,6 +122,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()
@@ -144,17 +146,17 @@ INSTALL()
mv $appsDir/kreversi $appsDir/KReversi
local APP_SIGNATURE="application/x-vnd.kde-kreversi"
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-kreversi"
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/kreversi.rdef.in > kreversi.rdef
addResourcesToBinaries kreversi.rdef $appsDir/KReversi