diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-24 15:04:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-24 15:05:44 +0000 |
commit | 1e1305daa6badebca6451664e128096dadc29b11 (patch) | |
tree | 575c737dd00b253692f22b4ea40a34a50cac6ad8 /main/freeswitch/APKBUILD | |
parent | a7d7dc3022e9599d12432a86ac95f9ae5d586c8e (diff) | |
download | aports-1e1305daa6badebca6451664e128096dadc29b11.tar.bz2 aports-1e1305daa6badebca6451664e128096dadc29b11.tar.xz |
main/freeswitch: added flite module in subpackage
Diffstat (limited to 'main/freeswitch/APKBUILD')
-rw-r--r-- | main/freeswitch/APKBUILD | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD index 1f9407ecd0..8fea40a846 100644 --- a/main/freeswitch/APKBUILD +++ b/main/freeswitch/APKBUILD @@ -1,7 +1,8 @@ # Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=freeswitch pkgver=1.0.6 -pkgrel=8 +pkgrel=9 pkgdesc="A communications platform written in C from the ground up" url="http://www.freeswitch.org" license="GPL" @@ -9,15 +10,17 @@ depends="" makedepends="curl-dev unixodbc-dev zlib-dev openssl-dev autoconf automake libtool" install="$pkgname.pre-install $pkgname.post-install" -subpackages="$pkgname-dev" +subpackages="$pkgname-dev $pkgname-flite" source="http://files.freeswitch.org/freeswitch-$pkgver.tar.gz modules.conf freeswitch.confd freeswitch.initd " +_builddir="$srcdir/$pkgname-$pkgver" + build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" cp -f "$srcdir/modules.conf" modules.conf || return 1 # i think our max cmd len is 32768 @@ -37,7 +40,7 @@ build() { } package(){ cd "$srcdir/$pkgname-$pkgver" - make -j1 DESTDIR="$pkgdir" install + make -j1 DESTDIR="$pkgdir" install || return 1 # we need to do some moving/cleanup to allow some... kind of FHS mkdir -p "$pkgdir"/var/run/freeswitch mkdir -p "$pkgdir"/var/lib/freeswitch @@ -53,7 +56,26 @@ package(){ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } + +_mv_mod() { + local moddir=usr/lib/freeswitch i= + mkdir -p "$subpkgdir"/$moddir + for i in $@; do + mv "$pkgdir"/$moddir/$i.so "$subpkgdir"/$moddir/ || return 1 + done +} + + +flite() { + pkgdesc="Freeswitch Text To Speech Module" + depends="freeswitch" + install= + _mv_mod mod_flite mod_say_de mod_say_en mod_say_es mod_say_fr \ + mod_say_it mod_say_nl mod_say_zh +} + + md5sums="388effee587887a81fe7f411b7350590 freeswitch-1.0.6.tar.gz -c05f2356be159e99b3845f5260a33599 modules.conf +55e62842ad037e5e550ad097df09f6d2 modules.conf c608cca8ad773acebf201f581438c7e7 freeswitch.confd 6973e15d72e5876152b160bd9e8d282b freeswitch.initd" |