# Contributor: Leo # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=falkon pkgver=23.04.3 pkgrel=1 pkgdesc="Cross-platform Qt Web Browser" url="https://github.com/KDE/falkon" # armhf blocked by qt5-qtdeclarative # ppc64le, s390x and riscv64 blocked by qt5-qtwebengine arch="all !armhf !ppc64le !s390x !riscv64" license="GPL-3.0-or-later" depends="qt5-qtbase-sqlite" makedepends=" extra-cmake-modules karchive-dev kcoreaddons-dev kcrash-dev ki18n-dev kio-dev kwallet-dev libshiboken2-dev libxcb-dev openssl-dev>3 purpose-dev py3-pyside2-dev python3 qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qttools-dev qt5-qtwebengine-dev qt5-qtx11extras-dev samurai shiboken2 xcb-util-dev " checkdepends="xvfb-run" subpackages="$pkgname-lang $pkgname-bash-completion:bashcomp:noarch" _repo_url="https://invent.kde.org/network/falkon.git" source="https://download.kde.org/stable/release-service/$pkgver/src/falkon-$pkgver.tar.xz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DBUILD_TESTING=ON cmake --build build } check() { cd build # Requires working OpenGL # qmlhistoryapitest, qmlcookiesapitest, qmltabsapitest and qmlwindowsapitest are SIGTRAP'ing xvfb-run ctest --output-on-failure -E "falkon-(basic|locationbar|webview|webtab|tabmodel|qml-qml(historyapi|cookiesapi|tabsapi|windowsapi))test" -j1 } package() { DESTDIR="$pkgdir" cmake --install build } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" amove usr/share/bash-completion/completions } sha512sums=" 2d77e6f7383b3bf23aa979d57d2ba3a58516f18e3a72bf8a78695b36273ff00877e0109bba0dfa2b09215433457d12f919568cecacd9b96be888b585bf513f83 falkon-23.04.3.tar.xz "