# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mbrola-voices
pkgver=0_git20200330
pkgrel=0
_commit="fe05a0ccef6a941207fd6aaad0b31294a1f93a51"
pkgdesc="Data files of mbrola speech synthesizer voices"
url="https://github.com/numediart/MBROLA-voices"
arch="noarch"
license="AGPL-3.0-or-later"
source="https://github.com/numediart/MBROLA-voices/archive/$_commit/MBROLA-voices-$_commit.tar.gz"
options="!check" # No code to test
builddir="$srcdir/MBROLA-voices-$_commit"

package() {
	cd data
	find . -type d -mindepth 1 -maxdepth 1 | while read -r d; do
		install -Dm644 $d/$d "$pkgdir"/usr/share/mbrola/$d/$d
	done
}

sha512sums="8476e80984279fddab1bda07e9352bee9f11499dc5b59652cd4bc0385b08a83259c080748e7040fa10cc03c9b0f1e1d1a39f80ddd782073c92f49fadc9af9585  MBROLA-voices-fe05a0ccef6a941207fd6aaad0b31294a1f93a51.tar.gz"
