# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtquickcontrols2
_pkgname=qtquickcontrols2-opensource-src
pkgver=5.9.7
pkgrel=0
pkgdesc="Qt 5 - Quick Controls 2.0"
url="https://www.qt.io/"
arch="all"
options="!check"  # Impossible to test with accelerated X desktop
license="LGPLv2 with exceptions OR GPLv3 with exceptions"
depends=""
depends_dev="qt5-qtdeclarative-dev"
makedepends="$depends_dev 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
}

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

sha512sums="591a3b5ee53f681d1c9906451db76c89c12e9ccdc0cdbbb18937550612149505ba415f85d3acf2c01ab6c6b9aab279388fb2e6b501daf9ac49095b20eaeac032  qtquickcontrols2-opensource-src-5.9.7.tar.xz"