void-packages/srcpkgs/espeak/template

41 lines
986 B
Bash

# Template file for 'espeak'
pkgname=espeak
version=1.48.04
revision=5
wrksrc="${pkgname}-${version}-source"
build_wrksrc=src
build_style=gnu-makefile
hostmakedepends="unzip"
makedepends="pulseaudio-devel portaudio-devel"
short_desc="Text to Speech engine"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-3.0-or-later"
homepage="http://espeak.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.zip"
checksum=bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659
pre_configure() {
cp portaudio19.h portaudio.h
}
do_build() {
make CXX=$CXX CXXFLAGS="$CXXFLAGS" AUDIO=runtime
}
libespeak_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/share/espeak-data
}
}
libespeak-devel_package() {
depends="${makedepends} libespeak>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}