# Maintainer: Sertonix <sertonix@posteo.net>
pkgname=qdocumentview
pkgver=0.3.0.1
pkgrel=0
pkgdesc="Multi-page Document Rendering class for Qt"
url="https://gitlab.com/extraqt/qdocumentview"
arch="all"
license="GPL-3.0-only"
makedepends="cups-dev meson poppler-qt5-dev qt6-qtbase-dev"
subpackages="$pkgname-dev"
source="https://gitlab.com/extraqt/qdocumentview/-/archive/v$pkgver/qdocumentview-v$pkgver.tar.gz"
builddir="$srcdir/qdocumentview-v$pkgver"
options="!check" # no tests

build() {
	abuild-meson \
		output .
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
d905f3206ab1b134dd7b8193ac29f560e16601fa684950f071e0cb4b1bdd6893aa45ee701f366161470624a0d1979dbc781f3b4447f616b6d00b98822fb50d9b  qdocumentview-v0.3.0.1.tar.gz
"
