74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
# Template file for 'espeak-ng'
|
|
pkgname=espeak-ng
|
|
version=1.51
|
|
revision=1
|
|
build_style=gnu-configure
|
|
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/"
|
|
changelog="https://raw.githubusercontent.com/espeak-ng/espeak-ng/master/ChangeLog.md"
|
|
distfiles="https://github.com/espeak-ng/espeak-ng/archive/${version}.tar.gz"
|
|
checksum=f0e028f695a8241c4fa90df7a8c8c5d68dcadbdbc91e758a97e594bbb0a3bdbf
|
|
disable_parallel_build=yes
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" espeak-ng"
|
|
fi
|
|
|
|
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)"
|
|
}
|