updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / txt2pho / PKGBUILD
blob7ec4ab9ebdf65aced39db89355928ffd2ef90c0a
1 # Contributor: Christoph Drexler <chrdr(at)gmx(dot)at>
2 pkgname=txt2pho
3 pkgver=0.9.4
4 pkgrel=2
5 pkgdesc="A TTS front end for the German inventories of the MBROLA phoneme-to-audio converter."
6 arch=('i686' 'x86_64')
7 url="http://www.ikp.uni-bonn.de/forschung/phonetik/sprachsynthese/txt2pho"
8 license=(custom)
9 depends=(mbrola)
10 source=(http://storage.sk.uni-bonn.de/${pkgname}/${pkgname}.zip)
11 md5sums=('37fc21f71865525105f864967b64f007')
13 build() {
14   cd ${pkgdir}
15   mkdir -p etc usr/bin
16   mkdir -p usr/share/${pkgname} usr/share/preproc
17   mkdir -p usr/share/doc/${pkgname} usr/share/doc/preproc
18   mkdir -p usr/share/licenses/${pkgname}
19   cd ${srcdir}/${pkgname}
20   install ${pkgname} pipefilt/pipefilt preproc/preproc ${pkgdir}/usr/bin/
21   install README ${pkgdir}/usr/share/doc/${pkgname}/
22   install txt2phorc ${pkgdir}/etc/txt2pho
23   sed -i 's|/home/tpo/txt2pho/data/|/usr/share/txt2pho/data/|' ${pkgdir}/etc/txt2pho
24   mkdir -p ${pkgdir}/usr/share/${pkgname}/
25   cp -r data ${pkgdir}/usr/share/${pkgname}/
26   cp -r demo ${pkgdir}/usr/share/${pkgname}/
27   mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
28   sed -n -e '/^LICENSE/,/========.*/p' README > ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
29   chmod 0644 ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
30   cd preproc
31   install Rules.lst Hadifix.abk ${pkgdir}/usr/share/preproc/
32   install MANUAL ${pkgdir}/usr/share/doc/preproc/MANUAL