kmines, bump to 25.04.0 (#12362)

This commit is contained in:
Schrijvers Luc
2025-05-12 14:16:35 +02:00
committed by GitHub
parent ebfc0c2c8a
commit f62698b015

View File

@@ -6,7 +6,7 @@ COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kmines-$portVersion.tar.xz"
CHECKSUM_SHA256="537913cc2cfea1694fdd1aaf0872bba7182aa8f9341245de20a4455e0acf419d"
CHECKSUM_SHA256="5876a714815467ea3dd66d4b85f45fac4577689b551cda82502cbc723d308463"
SOURCE_DIR="kmines-$portVersion"
ADDITIONAL_FILES="kmines.rdef.in"
@@ -15,7 +15,7 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kmines$secondaryArchSuffix = $portVersion
app:KMines$secondaryArchSuffix = $portVersion
app:KMines = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -107,6 +107,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()
@@ -128,17 +130,17 @@ INSTALL()
mv $appsDir/kmines $appsDir/KMines
local APP_SIGNATURE="application/x-vnd.kde-kmines"
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-kmines"
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/kmines.rdef.in > kmines.rdef
addResourcesToBinaries kmines.rdef $appsDir/KMines