Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 5th, 2010  |  syntax: Bash  |  size: 1.38 KB  |  views: 135  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Christoph Drexler <chrdr(at)gmx(dot)at>
  2. pkgname=txt2pho
  3. pkgver=0.9.4
  4. pkgrel=1
  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')
  12.  
  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
  33. }