# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtspeech
_pkgname=qtspeech-everywhere
pkgver=5.15.4
pkgrel=1
pkgdesc=" Library for speech processing and Text-to-Speech (TTS) in Qt"
url="https://www.qt.io/"
arch="all"
options="!check"
license="LGPL-3.0-only WITH Qt-LGPL-exception-1.1 OR GPL-3.0-only WITH Qt-GPL-exception-1.0"
depends=""
makedepends="qt5-qtbase-dev qt5-qtmultimedia-dev flite-dev"
subpackages="$pkgname-dev"
source="https://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/$_pkgname-opensource-src-$pkgver.tar.xz
	kde-lts.patch
	"
builddir="$srcdir"/$_pkgname-src-$pkgver

build() {
	qmake -- -flite-alsa
	make
}

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

sha512sums="6582fe36950aee8428c72582ff2eda2dae433ad969c323e0c6e8be611be7d81766ceb1cae85a10dcd4d266e33a0cf782fe857e1502d7f3863e0dfb2306af2aed  qtspeech-everywhere-opensource-src-5.15.4.tar.xz
e40cf1cf3e65e5add61c45c2a73bc48927a9bd34b0e0353bf6ecb77a57978b3fe2cf73608b6ffe4c84de807f9d2c1af3bf022b4a78411313ff0c4ecd425b415d  kde-lts.patch"