void-packages/srcpkgs/espeak-ng/template
2021-01-16 18:15:46 +01:00

74 lines
1.7 KiB
Bash

# Template file for 'espeak-ng'
pkgname=espeak-ng
version=1.50
revision=1
build_style=gnu-configure
make_build_args="-j1"
hostmakedepends="automake libtool which pkg-config"
makedepends="pcaudiolib-devel libsonic-devel"
short_desc="Text to Speech engine"
maintainer="Joey <joey@imap.cc>"
license="GPL-3.0-or-later"
homepage="https://github.com/espeak-ng/espeak-ng/"
distfiles="https://github.com/espeak-ng/espeak-ng/archive/${version}.tar.gz"
checksum=5ce9f24ee662b5822a4acc45bed31425e70d7c50707b96b6c1603a335c7759fa
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" espeak-ng"
fi
CFLAGS="-fcommon"
pre_configure() {
./autogen.sh
}
post_configure() {
if [ "$CROSS_BUILD" ]; then
vsed -i '\_dict:\ src/espeak-ng_ s_src/espeak-ng_/usr/bin/espeak-ng_' Makefile
vsed -i "s_../src/espeak-ng_/usr/bin/espeak-ng_" -i Makefile
vsed -i '\_--compile_ s_src/espeak-ng_/usr/bin/espeak-ng_' Makefile
fi
}
do_check() {
#disableall checks because of breakage
return
}
libespeak-ng_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
vmove usr/share/espeak-ng-data
}
}
libespeak-ng-devel_package() {
depends="libespeak-ng>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove "/usr/lib/pkgconfig"
}
}
espeak_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}
libespeak_package() {
depends="libespeak-ng>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}
libespeak-devel_package() {
depends="libespeak-ng-devel>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}