# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtmultimedia
_pkgname=qtmultimedia-opensource-src
pkgver=5.9.7
pkgrel=0
pkgdesc="Qt 5 - Audio, video, radio, and camera libraries"
url="https://www.qt.io/"
arch="all"
license="LGPL-2.0 with exceptions OR GPL-3.0 with exceptions"
makedepends="alsa-lib-dev gstreamer-dev gst-plugins-base-dev libxv-dev
	pulseaudio-dev qt5-qtbase-dev qt5-qtdeclarative-dev xorgproto-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="a5c947cb8764e63e81187db01caefa588bab77705b03ed0dff09433b0831f55f2461c64f2ce99085c7bfcac795ae67dd69ac7a992ef8d04c043d237e2c95e4c6  qtmultimedia-opensource-src-5.9.7.tar.xz"