# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=espeak
pkgver=1.48.04
pkgrel=1
pkgdesc="Speech synthesizer for English and other languages"
url="http://espeak.sourceforge.net/"
arch="all"
license="GPL3"
subpackages="$pkgname-dev"
depends=
makedepends=
source="http://downloads.sourceforge.net/project/espeak/espeak/espeak-${pkgver%.*}/espeak-$pkgver-source.zip
	fix-narrowing.patch
	"

builddir="$srcdir"/$pkgname-$pkgver-source

build() {
	cd "$builddir"/src
	make AUDIO=none || return 1
}

package() {
	cd "$builddir"/src
	make AUDIO=none DESTDIR="$pkgdir" install || return 1
}

md5sums="cadd7482eaafe9239546bdc09fa244c3  espeak-1.48.04-source.zip
088613fcee8a403295b37c4db7c5bd65  fix-narrowing.patch"
sha256sums="bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659  espeak-1.48.04-source.zip
52c048d5875235989158ea4cd09bb0f8234a5a130cdf04f664f4a5f20f5d11f3  fix-narrowing.patch"
sha512sums="f0759e6ace2604c8cbb19e8c3fd4b106edf4dcece247a6677f6b734af7746c35a367126edfbe585396c98f6c54f07e25d64bfab35e258e64f09bd2c0833247fa  espeak-1.48.04-source.zip
e22808285b40a3cb65343e3c1bc10971cf00200e68358628813c71ee427d368e068baaf253b9b7b4a70fbec116f9914439fa499d162b132e259e712abaf8399d  fix-narrowing.patch"