Files
haikuports/kde-apps/kpkpass/kpkpass_kf6-24.12.2.recipe
2025-02-12 09:19:53 +00:00

115 lines
2.9 KiB
Bash

SUMMARY="Library to deal with Apple Wallet pass files"
DESCRIPTION="KPkPass provides means to access the content of Apple Wallet files, both via a C++ \
API and a QML-compatible property interface.
The entry point in both cases is KPkPass::Pass to load an existing pass.
Apple Wallet files are essentially ZIP files containing a JSON description of the pass,
translated message catalogs and graphical assets to render the pass."
HOMEPAGE="https://invent.kde.org/pim/kpkpass"
COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kpkpass-$portVersion.tar.xz"
CHECKSUM_SHA256="56043984d03d14b7949afa4073cddd33c521136603a6a36a252c64ce87f4c7b4"
SOURCE_DIR="kpkpass-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="6.3.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kpkpass_kf6$secondaryArchSuffix = $portVersion
lib:libKPim6PkPass$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
# KF6
lib:libKF6Archive$secondaryArchSuffix
# Qt6
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
"
REPLACES="
kpkpass24$secondaryArchSuffix
"
PROVIDES_devel="
kpkpass_kf6${secondaryArchSuffix}_devel = $portVersion
devel:libKPim6PkPass$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kpkpass_kf6$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
kpkpass_kf6${secondaryArchSuffix}_doc = $portVersion
"
REQUIRES_doc="
kpkpass_kf6$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
shared_mime_info$secondaryArchSuffix
# KF6
extra_cmake_modules$secondaryArchSuffix
devel:libKF6Archive$secondaryArchSuffix
# Qt6
qt6_tools${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Gui$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:dot
cmd:doxygen
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DKDE_INSTALL_QTQCHDIR=$documentationDir/packages/qt6_base \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DBUILD_QCH=ON \
-DBUILD_TESTING=OFF \
-Wno-dev
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# don't mess with shared_mime_info files
rm -rf $dataDir/mime/{aliases,generic-icons,globs,globs2,icons,magic}
rm -rf $dataDir/mime/{mime.cache,subclasses,treemagic,types,version,XMLnamespaces}
prepareInstalledDevelLib \
libKPim6PkPass
packageEntries devel \
$developDir \
$libDir/cmake
packageEntries doc \
$documentationDir
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
ctest --test-dir build --output-on-failure
}