aboutsummaryrefslogtreecommitdiffstats
path: root/main/flite
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-12 16:07:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-12 16:31:04 +0000
commited7fd8cee4853f5746fbcfc807fb3047565a5170 (patch)
tree400555e4c83cfeecd1006fa8a65afcefd45c053d /main/flite
parent7d72b5a24902cb2672df993913b2eda52f704051 (diff)
downloadaports-ed7fd8cee4853f5746fbcfc807fb3047565a5170.tar.bz2
aports-ed7fd8cee4853f5746fbcfc807fb3047565a5170.tar.xz
main/flite: upgrade to 2.0.0
needed by freeswitch
Diffstat (limited to 'main/flite')
-rw-r--r--main/flite/APKBUILD28
1 files changed, 23 insertions, 5 deletions
diff --git a/main/flite/APKBUILD b/main/flite/APKBUILD
index ee68b17399..2bfb001473 100644
--- a/main/flite/APKBUILD
+++ b/main/flite/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flite
-pkgver=1.4
-pkgrel=2
+pkgver=2.0.0
+pkgrel=0
pkgdesc="Small, fast speech synthesis engine (text-to-speech)"
url="http://www.speech.cs.cmu.edu/flite/"
arch="all"
@@ -12,7 +12,7 @@ depends_dev=
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
-source="http://www.speech.cs.cmu.edu/flite/packed/flite-1.4/flite-$pkgver-release.tar.bz2"
+source="http://www.festvox.org/flite/packed/flite-${pkgver%.*}/flite-$pkgver-release.tar.bz2"
_builddir="$srcdir"/flite-$pkgver-release
prepare() {
@@ -23,7 +23,6 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
- update_config_sub || return 1
}
build() {
@@ -49,6 +48,25 @@ package() {
INSTALLLIBDIR="$pkgdir"/usr/lib \
INSTALLINCDIR="$pkgdir"/usr/include/flite \
|| return 1
+ # remove relative rpaths
+ scanelf -R -r --fix "$pkgdir" || return 1
+ 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.0.0
+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="b7c3523b3bbc6f29ce61e6650cd9a428 flite-1.4-release.tar.bz2"
+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"