# Maintainer: Frank Endres <frankendres@tuxfamily.org>
pkgname=picotts
pkgver=0.1
pkgrel=1
pkgdesc="lib and unix binary for text-to-speech engine from Android"
arch=('x86_64')
url="https://github.com/naggety/picotts"
license=('MIT')
makedepends=('binutils' 'git')
provides=('libttspico.so')

prepare() {
	if [ -d "$pkgname" ]; then
		git -C "$pkgname" fetch
	else
		git clone "https://github.com/naggety/picotts.git"
	fi
	cd "$pkgname/pico"
	./autogen.sh
	./configure --prefix=/usr --libdir=/usr/lib --disable-static
}

build() {
	cd "$pkgname/pico"
	make
}

package() {
	cd "$pkgname/pico"
	make DESTDIR="$pkgdir/" install
}
