# Maintainer: Alexander Epaneshnikov # Maintainer: vantu5z # Contributor: der_fenix pkgname=rhvoice-git pkgver=1.2.3.r59.c699a39 pkgrel=1 pkgdesc="Free and open source speech synthesizer for Russian and other languages. (development version)" arch=('x86_64') url="https://github.com/RHVoice/RHVoice" license=('GPL3' 'custom' 'custom:by-nc-nd-4.0' 'custom:by-nc-sa-4.0' 'custom:by-sa-4.0') depends=('libpulse') makedepends=('git' 'scons') optdepends=('rhvoice-dictionary-git: extended russian dictionary' 'speech-dispatcher: for speech-dispatcher module support' 'portaudio: for portaudio backend' 'libao: for ao backend') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") backup=('etc/RHVoice/RHVoice.conf') source=(${pkgname%-git}::'git+https://github.com/RHVoice/RHVoice.git') md5sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } build() { cd "$srcdir/${pkgname%-git}" scons prefix="/usr" sysconfdir="/etc" CPPFLAGS="$CPPFLAGS" CCFLAGS="$CFLAGS" \ LINKFLAGS="$LDFLAGS" } package() { cd "$srcdir/${pkgname%-git}" install -d "${pkgdir}/usr/lib/speech-dispatcher-modules" scons install DESTDIR="${pkgdir}" prefix="/usr" sysconfdir="/etc" \ CPPFLAGS="$CPPFLAGS" CCFLAGS="$CFLAGS" LINKFLAGS="$LDFLAGS" ln -s "/usr/bin/sd_rhvoice" "${pkgdir}/usr/lib/speech-dispatcher-modules/sd_rhvoice" install -Dm0644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm0644 licenses/by-nc-nd-4.0.txt "${pkgdir}/usr/share/licenses/${pkgname}/by-nc-nd-4.0" install -Dm0644 licenses/by-nc-sa-4.0.txt "${pkgdir}/usr/share/licenses/${pkgname}/by-nc-sa-4.0" install -Dm0644 licenses/by-sa-4.0.txt "${pkgdir}/usr/share/licenses/${pkgname}/by-sa-4.0" }