# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtwebchannel
_pkgname=qtwebchannel-opensource-src
pkgver=5.9.7
pkgrel=0
pkgdesc="Qt 5 - Connect Qt applications to WebSockets"
url="https://www.qt.io/"
arch="all"
options="!check"
license="LGPLv2 with exceptions OR GPLv3 with exceptions"
depends=""
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
}

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

sha512sums="0109f11dd9c83e8dbf50921abb642a5e185fda98ead87973bd1b24c1f490268f2a9c7d264da659f7eac1f98942aecc839d7418abce0e7d2a66093b9b89eb4bca  qtwebchannel-opensource-src-5.9.7.tar.xz"