# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtscript
_pkgname=qtscript-opensource-src
pkgver=5.9.7
pkgrel=1
pkgdesc="Qt 5 - Deprecated scripting framework for Qt applications"
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
	gcc8.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver

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

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

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

sha512sums="e019d2e7aa29e1183636503822db960d97f1787fa7517f286acbe42645f2c5daa099cc251ac6640e3243dedb4ef64e509f2e22bca798a7e583063e0ac7635662  qtscript-opensource-src-5.9.7.tar.xz
426174235ab57b14edf58166327372ba215dfce092b9d4cc07686b326c999d4d6348460a75343791de96b6ad7352c393b4a748d0592865e0d78dc119c12657f2  gcc8.patch"