From e190a7c5ad371b2c3668eaaaffc4551fc4ee93b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Sat, 5 Sep 2026 10:57:21 +0200 Subject: [PATCH] Update to 1.8.0 Add libpiper to the package. --- .SRCINFO | 8 +++++--- PKGBUILD | 30 +++++++++++++++++++++++++++--- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index f6e99587..3acf3179 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = piper-tts pkgdesc = Fast and local neural text-to-speech engine - pkgver = 1.5.0 + pkgver = 1.8.0 pkgrel = 1 url = https://github.com/OHF-Voice/piper1-gpl arch = x86_64 @@ -14,16 +14,18 @@ pkgbase = piper-tts makedepends = cmake makedepends = ninja depends = glibc + depends = onnxruntime depends = python-numpy depends = python-onnxruntime depends = python-pathvalidate + optdepends = espeak-ng: dictionaries optdepends = python-flask: http server optdepends = python-onnx: patch voice with alignment optdepends = python-pytorch: train provides = piper-tts conflicts = piper-tts conflicts = piper - source = git+https://github.com/OHF-Voice/piper1-gpl.git#tag=v1.5.0 - sha256sums = 76bd746a236f27c56a6885d9d763c2db6fe12e530c7dfd30d9b2e061e2c1f988 + source = git+https://github.com/OHF-Voice/piper1-gpl.git#tag=v1.8.0 + sha256sums = 70d062c1e80b0967b311f53e6036d9c78e146a6065d7444f3cec4a2fe85d2ea5 pkgname = piper-tts diff --git a/PKGBUILD b/PKGBUILD index 61446d01..65bac01a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ pkgname=piper-tts _pkgname=piper1-gpl -pkgver=1.5.0 +pkgver=1.8.0 pkgrel=1 pkgdesc="Fast and local neural text-to-speech engine" arch=('x86_64') @@ -8,15 +8,16 @@ url="https://github.com/OHF-Voice/piper1-gpl" license=('GPL-3.0-or-later') provides=('piper-tts') conflicts=('piper-tts' 'piper') -depends=(glibc python-numpy python-onnxruntime python-pathvalidate) +depends=(glibc onnxruntime python-numpy python-onnxruntime python-pathvalidate) optdepends=( + 'espeak-ng: dictionaries' 'python-flask: http server' 'python-onnx: patch voice with alignment' 'python-pytorch: train' ) makedepends=(git python-setuptools python-build python-installer python-wheel python-scikit-build cmake ninja) source=("git+https://github.com/OHF-Voice/piper1-gpl.git#tag=v$pkgver") -sha256sums=('76bd746a236f27c56a6885d9d763c2db6fe12e530c7dfd30d9b2e061e2c1f988') +sha256sums=('70d062c1e80b0967b311f53e6036d9c78e146a6065d7444f3cec4a2fe85d2ea5') prepare() { cd ${_pkgname} @@ -26,15 +27,38 @@ prepare() { build() { cd ${_pkgname} python -m build --wheel --no-isolation + + local cmake_options=( + -B build + -S libpiper + -DCMAKE_INSTALL_PREFIX=/usr + -DPIPER_BUILD_TESTS=ON + ) + cmake "${cmake_options[@]}" + cmake --build build +} + +check() { + local ctest_flags=( + --test-dir ${_pkgname}/build + # show the stdout and stderr when the test fails + --output-on-failure + # execute tests in parallel + --parallel $(nproc) + ) + ctest "${ctest_flags[@]}" } package() { cd ${_pkgname} python -m installer --destdir="$pkgdir" dist/*.whl + DESTDIR="$pkgdir" cmake --install build + # avoid conflict with GTK application 'piper' mv "$pkgdir"/usr/bin/piper "$pkgdir"/usr/bin/piper-tts rm "$pkgdir"/usr/COPYING + rm -r "$pkgdir"/usr/share } -- 2.51.2