mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
97 lines
2.6 KiB
Bash
97 lines
2.6 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-2024 KDE Organisation"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="2"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kpkpass-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="803f2a222e844f09b3ac68f0ee2c4032d2a3694c60b1188a9c5527e64e26c24b"
|
|
SOURCE_DIR="kpkpass-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="6.3.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kpkpass24$secondaryArchSuffix = $portVersion
|
|
lib:libKPim6PkPass$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
# KF 6
|
|
lib:libKF6Archive$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kpkpass24${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKPim6PkPass$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
kpkpass24$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
shared_mime_info$secondaryArchSuffix
|
|
# KF 6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6Archive$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
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_PLUGINDIR=$addOnsDir/Qt6 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-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
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
ctest --test-dir build --output-on-failure
|
|
}
|