mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 05:37:13 +08:00
71 lines
2.4 KiB
Bash
71 lines
2.4 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=speech-dispatcher
|
|
pkgver=0.7.1
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.freebsoft.org/speechd"
|
|
pkgdesc="High-level device independent layer for speech synthesis interface"
|
|
license=('GPL2' 'FDL')
|
|
depends=('glib2' 'alsa-lib' 'dotconf' 'texinfo' 'libpulse' )
|
|
optdepends=('festival-freebsoft-utils: Speech output using Festival.'
|
|
'espeak: Speech output using ESpeak.'
|
|
'pulseaudio: PulseAudio support')
|
|
makedepends=('pkgconfig' 'espeak')
|
|
provides=("speechd=$pkgver")
|
|
options=('!libtool')
|
|
replaces=('opentts')
|
|
source=("http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz"
|
|
'speechd.sh')
|
|
install="speech-dispatcher.install"
|
|
md5sums=('ccfc30ac006673d36b4223eb760ed696'
|
|
'32aed96c53f541284f3ee5af57fee524')
|
|
backup=(etc/speech-dispatcher/clients/gnome-speech.conf
|
|
etc/speech-dispatcher/clients/emacs.conf
|
|
etc/speech-dispatcher/modules/ibmtts.conf
|
|
etc/speech-dispatcher/modules/espeak-generic.conf
|
|
etc/speech-dispatcher/modules/espeak.conf
|
|
etc/speech-dispatcher/modules/swift-generic.conf
|
|
etc/speech-dispatcher/modules/festival.conf
|
|
etc/speech-dispatcher/modules/cicero.conf
|
|
etc/speech-dispatcher/modules/espeak-mbrola-generic.conf
|
|
etc/speech-dispatcher/modules/dtk-generic.conf
|
|
etc/speech-dispatcher/modules/llia_phon-generic.conf
|
|
etc/speech-dispatcher/modules/ivona.conf
|
|
etc/speech-dispatcher/modules/epos-generic.conf
|
|
etc/speech-dispatcher/modules/flite.conf
|
|
etc/speech-dispatcher/speechd.conf)
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--without-flite
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
install -Dm755 ${srcdir}/speechd.sh ${pkgdir}/etc/rc.d/speechd
|
|
install -d ${pkgdir}/var/log/speech-dispatcher
|
|
|
|
# Fix spd-conf to use python 2.7
|
|
# sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf
|
|
# sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py
|
|
|
|
rm -f ${pkgdir}/usr/share/info/dir
|
|
gzip -9nf ${pkgdir}/usr/share/info/*
|
|
|
|
# Remove conflicts with erlang (FS#21674)
|
|
rm -r ${pkgdir}/usr/bin/run_test
|
|
} |