# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtxmlpatterns
_pkgname=qtxmlpatterns-opensource-src
pkgver=5.9.7
pkgrel=0
pkgdesc="Qt 5 - Support for XPath, XQuery, XSLT, and XML schema validation"
url="https://www.qt.io/"
arch="all"
license="LGPL-2.0 with exceptions OR GPL-3.0 with exceptions"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-dev"
source="https://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/$_pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	qmake
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make install INSTALL_ROOT="$pkgdir"
}

sha512sums="d24f983eaf0414b5b5dbbd8e60cfc87d4d742aae82b457e5d77c01a0534620f30f4507e1c71ce4bbe2a16eeafd6dde566c8d11bccea04c5668189936cc44aca3  qtxmlpatterns-opensource-src-5.9.7.tar.xz"