kapman, bump to 25.04.0 (#12395)

This commit is contained in:
Schrijvers Luc
2025-05-16 14:53:55 +02:00
committed by GitHub
parent 391f421f66
commit 126081dc15

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/kapman-$portVersion.tar.xz"
CHECKSUM_SHA256="9bb246a2114be4f28e5bb7191b21f9ebbd2b040104b0ad4a163efadccb8bf211"
CHECKSUM_SHA256="08040773c710e5d922ca1ac1d57bfaa404a223c9af8e800a345da79635d38ec1"
SOURCE_DIR="kapman-$portVersion"
ADDITIONAL_FILES="kapman.rdef.in"
@@ -103,10 +103,9 @@ BUILD_REQUIRES="
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
cmd:msgfmt
cmd:msgmerge
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
@@ -117,37 +116,40 @@ 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()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$appsDir \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make -Cbuild $jobArgs
make -C build $jobArgs
}
INSTALL()
{
make -Cbuild install
make -C build install
# cleanup
rm -rf $dataDir/{applications,icons,metainfo}
mv $appsDir/kapman $appsDir/Kapman
local APP_SIGNATURE="application/x-vnd.kde-kapman"
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-kapman"
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/kapman.rdef.in > kapman.rdef
addResourcesToBinaries kapman.rdef $appsDir/Kapman