# Contributor: Eric Trombly <etrombly@yahoo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=picotts
pkgver=0.1_git20190912
pkgrel=0
_gitrev=e3ba46009ee868911fa0b53db672a55f9cc13b1c
pkgdesc="Pico TTS: text to speech voice synthesizer from SVox"
url="https://github.com/naggety/picotts"
arch="all"
license="Apache-2.0"
makedepends="autoconf automake libtool popt-dev"
subpackages="$pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/naggety/picotts/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev/pico"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

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

sha512sums="
74da163a364ca2cd7ad4b12f658f18cc2c83d996fafbbff10400a33cde2960043add2be60e54a5873fb734b48ee4f7d4032c87616f2dd114ee8b1953a5e021d4  picotts-0.1_git20190912.tar.gz
"
