aports/community/espeak-ng/APKBUILD
Sertonix 7d4ba47e1b */*: prefer relative paths with amove
In several occasions absolute paths also included globs which leads to
globbing the host filesystem. To avoid this in the future never
explicitly use absolute paths.

This affected
- community/bubblejail
- community/py3-pygame
- main/git
- main/linux-firmware
- main/gcc (was already fixed in 5a434d40e5)

(also strip some ./ to avoid confusion)
2025-06-09 08:24:05 +00:00

53 lines
1.3 KiB
Text

# Maintainer: Dekedro <dekedro@protonmail.com>
pkgname=espeak-ng
pkgver=1.52.0
pkgrel=0
pkgdesc="Multi-lingual software speech synthesizer"
url="https://github.com/espeak-ng/espeak-ng"
arch="all"
license="GPL-3.0-or-later"
makedepends="cmake ninja pcaudiolib-dev ronn"
checkdepends="bash grep python3 sox"
subpackages="$pkgname-dev $pkgname-doc $pkgname-vim::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/espeak-ng/espeak-ng/archive/refs/tags/$pkgver.tar.gz
mbrola.patch
"
build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=None \
-DESPEAK_COMPAT=ON \
-DESPEAK_BUILD_MANPAGES=ON \
-DUSE_MBROLA=ON \
-DUSE_LIBSONIC=OFF \
-DUSE_LIBPCAUDIO=ON
cmake --build build
}
check() {
cd build
case "$CARCH" in
# FIXME hash mismatch
s390x) ctest -E klatt ;;
*) ctest ;;
esac
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
vim() {
pkgdesc="$pkgdesc (vim syntax)"
install_if="$pkgname=$pkgver-r$pkgrel vim"
amove usr/share/vim
}
sha512sums="
28793503f2be00505c3fe1dada8197a4e2d3af0d143e31ef883130fe2685d048ae9dee8efab637cdbe972461d95e210d2277b8e8fed4ae580d0cca8b505b0662 espeak-ng-1.52.0.tar.gz
f4c7a88b9eab02415e926b8fc2923ac2b416ead58bab8d0499b21385e0852ca31a725f5bd626ee5821c8e96e40f7bfa9359bce05c03b34c2c65bf464231060f7 mbrola.patch
"