# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=kgpg pkgver=23.04.3 pkgrel=1 # armhf blocked by extra-cmake-modules # ppc64le, s390x and riscv64 blocked by qt5-qtwebengine -> akonadi-contacts arch="all !armhf !ppc64le !s390x !riscv64" url="https://kde.org/applications/utilities/org.kde.kgpg" pkgdesc="A simple interface for GnuPG, a powerful encryption utility" license="GPL-2.0-or-later" makedepends=" akonadi-contacts-dev extra-cmake-modules gpgme-dev karchive-dev kcodecs-dev kcontacts-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdoctools-dev ki18n-dev kiconthemes-dev kio-dev kjobwidgets-dev knotifications-dev kservice-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev qt5-qtbase-dev samurai " _repo_url="https://invent.kde.org/utilities/kgpg.git" source="https://download.kde.org/stable/release-service/$pkgver/src/kgpg-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build # kgpg-import fails too often # kgpg-encrypt and kgpg-export are broken # del-key fails randomly # genkey fails on arm on builders CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "kgpg-(genkey|import|encrypt|export|del-key)" -j1 } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" c7621d4e562a345e3af080e6ccb714b97dae549c5836afb569a3ec36bf88a0bc2db282d223e3a5885286e0da669d3b7630a874dfeb22544b45e5f2cd4365275c kgpg-23.04.3.tar.xz "