# 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=libgravatar pkgver=23.04.3 pkgrel=1 pkgdesc="KDE PIM library providing Gravatar support" # armhf blocked by extra-cmake-modules # ppc64le, s390x and riscv64 blocked by qt5-qtwebengine -> pimcommon arch="all !armhf !ppc64le !s390x !riscv64" url="https://kontact.kde.org/" license="LGPL-2.0-or-later" depends_dev=" kconfig-dev ki18n-dev kio-dev ktextwidgets-dev kwidgetsaddons-dev pimcommon-dev qt5-qtbase-dev " makedepends="$depends_dev extra-cmake-modules samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/pim/libgravatar.git" source="https://download.kde.org/stable/release-service/$pkgver/src/libgravatar-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" options="net" # net required for tests build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { xvfb-run ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" d49fd2ce0928baf5d1ea5247dcbb3ae83530b24f028a0e78fdb1575969e3a83941becccceef8ace33f28e0fd341e5eb0eb1d9da6b86d43d4441b0c02a9715746 libgravatar-23.04.3.tar.xz "