# 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=gwenview pkgver=23.04.3 pkgrel=1 # armhf blocked by extra-cmake-modules # ppc64le, s390x and riscv64 blocked by qt5-qtwebengine -> purpose arch="all !armhf !ppc64le !s390x !riscv64" url="https://kde.org/applications/graphics/org.kde.gwenview" pkgdesc="Fast and easy to use image viewer by KDE" license="GPL-2.0-only" depends=" kimageformats qt5-qtimageformats " makedepends=" baloo-dev extra-cmake-modules kactivities-dev kdoctools-dev ki18n-dev kiconthemes-dev kimageannotator-dev kio-dev kitemmodels-dev knotifications-dev kparts-dev kwindowsystem-dev lcms2-dev libjpeg-turbo-dev libkdcraw-dev libkipi-dev libpng-dev purpose-dev qt5-qtbase-dev qt5-qtsvg-dev qt5-qtx11extras-dev samurai " checkdepends=" dbus kinit xvfb-run " _repo_url="https://invent.kde.org/graphics/gwenview.git" source="https://download.kde.org/stable/release-service/$pkgver/src/gwenview-$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 # urlutilstest and placetreemodeltest are broken # recursivedirmodeltest and contextmanagertest requires running DBus local skipped_tests="(" local tests=" contextmanager documenttest jpegcontenttest placetreemodel recursivedirmodel urlutils " for test in $tests; do skipped_tests="$skipped_tests|$test" done skipped_tests="$skipped_tests)test" CTEST_OUTPUT_ON_FAILURE=TRUE dbus-run-session xvfb-run ctest -E "$skipped_tests" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" ce9b448383ad1648011f0289e9f7013203fbab8403b87b77ac1a24d0905febfc41be605c31ea81f59b380273947c0f15fcc77263f27e3848eeb8ce02a30553ba gwenview-23.04.3.tar.xz "