aboutsummaryrefslogtreecommitdiffstats
path: root/main/flite/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/flite/APKBUILD')
-rw-r--r--main/flite/APKBUILD48
1 files changed, 17 insertions, 31 deletions
diff --git a/main/flite/APKBUILD b/main/flite/APKBUILD
index 5ef757a59d..9fd2db2299 100644
--- a/main/flite/APKBUILD
+++ b/main/flite/APKBUILD
@@ -1,58 +1,44 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flite
-pkgver=2.1
-pkgrel=2
+pkgver=2.2
+pkgrel=0
pkgdesc="Small, fast speech synthesis engine (text-to-speech)"
url="http://www.speech.cs.cmu.edu/flite"
arch="all"
-license="MIT"
+license="BSD-4-Clause"
makedepends="alsa-lib-dev"
subpackages="$pkgname-dev"
-source="http://www.festvox.org/$pkgname/packed/$pkgname-$pkgver/$pkgname-$pkgver-release.tar.bz2
- fix-internal-linking.patch"
-builddir="$srcdir/$pkgname-$pkgver-release"
+source="$pkgname-$pkgver.tar.gz::https://github.com/festvox/flite/archive/v$pkgver.tar.gz
+ flite.pc
+ "
+
+prepare() {
+ default_prepare
+ sed -e "s|@PKGVER@|$pkgver|" -i "$srcdir"/flite.pc
+}
build() {
- cd "$builddir"
- CFLAGS="$CFLAGS -fPIC" ./configure \
+ CFLAGS="$CFLAGS -fPIC" \
+ ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-shared \
--localstatedir=/var \
--with-audio=alsa
- # work around parallel build issue
- make -C include
- make -C src
- make -C lang
- make -C tools
- make -j1
+ make
}
package() {
- cd "$builddir"
make install INSTALLBINDIR="$pkgdir"/usr/bin \
INSTALLLIBDIR="$pkgdir"/usr/lib \
INSTALLINCDIR="$pkgdir"/usr/include/flite
# remove relative rpaths
scanelf -R -r --fix "$pkgdir"
- mkdir -p "$pkgdir"/usr/lib/pkgconfig
- cat > "$pkgdir"/usr/lib/pkgconfig/flite.pc <<EOF
-prefix=/usr
-exec_prefix=\${prefix}
-libdir=\${exec_prefix}/lib
-includedir=\${prefix}/include
-Name: flite
-Description: a text to speech library
-Requires:
-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
+ install -Dm0644 "$srcdir"/flite.pc -t "$pkgdir"/usr/lib/pkgconfig
}
-sha512sums="e9ef9ca4b6920178634d94bbe6e21a8b0ec471b010b07e6cc961ed2d120acb944c8e1d268fe26188f7dfe43fb7bd4bdff7fa53b2d2f12029d37e08d0316620d2 flite-2.1-release.tar.bz2
-3794f7b6520ab11e5fd2e6e8dc2ce630f0bcb26ea42f94778e410c08f50e3b4c9c6388e60c15deb545df0d8a83f0299fc75766a606f040c13f68ae2f38b6a5df fix-internal-linking.patch"
+sha512sums="1ca2f4145651490ef8405fdb830a3b42e885020a7603d965f6a5581b01bed41047d396b38c2ceab138fc0b28d28078db17acd2b5a84c6444cb99d65c581afa72 flite-2.2.tar.gz
+9c8ea1b4241b0488d180b3391b594c76bdd43123051b0579983b17e0760d5b4bdf4887ac5d268111f6648d1373f042be067ab8762b7afb21c83e07fb6d73807b flite.pc"