Commit 81892117 authored by prspkt's avatar prspkt Committed by Natanael Copa

main/flite: upgrade to 2.1, modernize

parent 7021cfcb
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flite
pkgver=2.0.0
pkgver=2.1
pkgrel=0
pkgdesc="Small, fast speech synthesis engine (text-to-speech)"
url="http://www.speech.cs.cmu.edu/flite/"
url="http://www.speech.cs.cmu.edu/flite"
arch="all"
license="MIT"
depends=
......@@ -12,44 +12,32 @@ depends_dev=
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://www.festvox.org/flite/packed/flite-${pkgver%.*}/flite-$pkgver-release.tar.bz2"
_builddir="$srcdir"/flite-$pkgver-release
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
source="http://www.festvox.org/$pkgname/packed/$pkgname-$pkgver/$pkgname-$pkgver-release.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver-release"
build() {
cd "$_builddir"
cd "$builddir"
CFLAGS="$CFLAGS -fPIC" ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-shared \
--localstatedir=/var \
|| return 1
--localstatedir=/var
# work around parallel build issue
make -C include
make -C src
make -C lang
make -C tools
make -j1 || return 1
make -j1
}
package() {
cd "$_builddir"
cd "$builddir"
make install INSTALLBINDIR="$pkgdir"/usr/bin \
INSTALLLIBDIR="$pkgdir"/usr/lib \
INSTALLINCDIR="$pkgdir"/usr/include/flite \
|| return 1
INSTALLINCDIR="$pkgdir"/usr/include/flite
# remove relative rpaths
scanelf -R -r --fix "$pkgdir" || return 1
scanelf -R -r --fix "$pkgdir"
mkdir -p "$pkgdir"/usr/lib/pkgconfig
cat > "$pkgdir"/usr/lib/pkgconfig/flite.pc <<EOF
prefix=/usr
......@@ -60,13 +48,11 @@ includedir=\${prefix}/include
Name: flite
Description: a text to speech library
Requires:
Version: 2.0.0
Version: 2.1
Libs: -L\${libdir} -lflite -lflite_cmu_grapheme_lang -lflite_cmu_grapheme_lex -lflite_cmu_indic_lang -lflite_cmu_indic_lex -lflite_cmulex -lflite_cmu_time_awb -lflite_cmu_us_awb -lflite_cmu_us_kal16 -lflite_cmu_us_kal -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish
Libs.private: -lm
Cflags: -I\${includedir}/flite/
EOF
}
md5sums="645db96ffc296cbb6d37f231cc1cc6b2 flite-2.0.0-release.tar.bz2"
sha256sums="678c3860fd539402b5d1699b921239072af6acb4e72dc4720494112807cae411 flite-2.0.0-release.tar.bz2"
sha512sums="e2b353721d0316fbd7948f90f9c9561d080eebd50e8dd0449a9c803ffbdb060a469385fadd63f535ade8d627cba37928d8e72ac61d5bcf98f73ca5ebb66549f8 flite-2.0.0-release.tar.bz2"
sha512sums="e9ef9ca4b6920178634d94bbe6e21a8b0ec471b010b07e6cc961ed2d120acb944c8e1d268fe26188f7dfe43fb7bd4bdff7fa53b2d2f12029d37e08d0316620d2 flite-2.1-release.tar.bz2"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment