# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=qt6-qtwebview pkgver=6.2.3 pkgrel=0 pkgdesc="Provides a way to display web content in a QML application" url="https://qt.io/" # s390x blocked by qt6-qtdeclarative # ppc64le blocked by qt6-qtwebengine # riscv64 blocked by qt6-qtwebengine # 32-bit arches blocked by qt6-qtwebengine arch="all !s390x !ppc64le !riscv64 !x86 !armv7 !armhf" license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0" depends_dev=" qt6-qtbase-dev qt6-qtdeclarative-dev qt6-qtwebengine-dev " makedepends="$depends_dev cmake perl samurai " subpackages="$pkgname-dev" builddir="$srcdir/qtwebview-everywhere-src-${pkgver/_/-}" case $pkgver in *_alpha*|*_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtwebview-everywhere-src-${pkgver/_/-}.tar.xz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DINSTALL_BINDIR=lib/qt6/bin \ -DINSTALL_DOCDIR=share/doc/qt6 \ -DINSTALL_ARCHDATADIR=lib/qt6 \ -DINSTALL_DATADIR=share/qt6 \ -DINSTALL_INCLUDEDIR=include/qt6 \ -DINSTALL_MKSPECSDIR=lib/qt6/mkspecs \ -DINSTALL_EXAMPLESDIR=share/doc/qt6/examples cmake --build build --parallel } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" ad661f018a6edc5e9229c68291fedef6ec0abcf0f7af84c9c00bb56c5b8b2457d94e37ed909c1fb99013f7c3e6ff855fb89dc1dc341f980acfe55a3597dc5707 qtwebview-everywhere-src-6.2.3.tar.xz "