* update flite to 2.2-2

This commit is contained in:
Alexander Baldeck 2024-08-18 08:54:41 +02:00
parent 013db68553
commit 48ca9cda42
3 changed files with 39 additions and 16 deletions

15
flite/.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = flite
pkgdesc = A lightweight speech synthesis engine
pkgver = 2.2
pkgrel = 2
url = http://www.festvox.org/flite/
arch = x86_64
license = LicenseRef-Flite
makedepends = chrpath
makedepends = git
depends = alsa-lib
depends = glibc
source = git+https://github.com/festvox/flite#tag=v2.2
sha256sums = 2f7873f3de7bb6d6a8368684fd2bacf771260e666966a75535a4c8206424071b
pkgname = flite

5
flite/.nvchecker.toml Normal file
View File

@ -0,0 +1,5 @@
[flite]
source = 'github'
github = 'festvox/flite'
use_max_tag = true
prefix = 'v'

View File

@ -4,35 +4,38 @@
pkgname=flite
pkgver=2.2
pkgrel=1
pkgrel=2
pkgdesc="A lightweight speech synthesis engine"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="http://www.festvox.org/flite/"
license=(custom)
depends=(alsa-lib)
makedepends=(chrpath)
options=(!makeflags)
source=(https://github.com/festvox/flite/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('ab1555fe5adc3f99f1d4a1a0eb1596d329fd6d74f1464a0097c81f53c0cf9e5c')
license=(LicenseRef-Flite)
depends=(alsa-lib
glibc)
makedepends=(chrpath
git)
source=(git+https://github.com/festvox/flite#tag=v$pkgver)
sha256sums=('2f7873f3de7bb6d6a8368684fd2bacf771260e666966a75535a4c8206424071b')
prepare() {
cd $pkgname-$pkgver
cd $pkgname
sed '/^#VOXES.*$/d; s/+//g; s/cmu_indic_lex/&\nVOXES = cmu_us_kal16 cmu_us_slt/' config/android.lv >config/archlinux.lv
sed -i '/$(INSTALL) -m 755 $(BINDIR)\/flite_time $(DESTDIR)$(INSTALLBINDIR)/d' main/Makefile
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --enable-shared \
--with-audio=alsa \
--with-vox=cmu_us_kal16 \
--with-langvox=archlinux \
--build=${CHOST}
make
cd $pkgname
./configure \
--prefix=/usr \
--build=${CHOST} \
--enable-shared \
--with-audio=alsa \
--with-vox=cmu_us_kal16 \
--with-langvox=archlinux
make -j1
}
package() {
cd $pkgname-$pkgver
cd $pkgname
make DESTDIR="$pkgdir" install
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE