Advertisement
Guest User

PKGBUILD

a guest
Feb 15th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  2. # Contributor: Tom Adams <tom@holizz.com>
  3.  
  4. pkgname=htk
  5. pkgver=3.4.1
  6. pkgrel=2
  7. pkgdesc="A portable toolkit primarily used for speech recognition research"
  8. arch=('i686' 'x86_64')
  9. url="http://htk.eng.cam.ac.uk/"
  10. license=('custom: Proprietary')
  11. depends=('libx11')
  12. makedepends=('wget' 'patch')
  13. options=('!makeflags')
  14. #source=(http://htk.eng.cam.ac.uk/ftp/software/HTK-$pkgver.tar.gz)
  15. source=(configure.patch configure.ac.patch)
  16. md5sums=('a6e6556dbc4bd7a7f9a0f8ec05ede202'
  17. '2b970d4878c5720ecd8aa65e62196b19')
  18.  
  19. build() {
  20. cd ${srcdir}
  21.  
  22. #Note: HTK cannot be downloaded without a username/password. Use name and password from your registration here.
  23. wget --user=USERNAME --password=PASSWORD http://htk.eng.cam.ac.uk/ftp/software/HTK-$pkgver.tar.gz
  24.  
  25. cd ${srcdir}/$pkgname
  26. # 64bit will compile, but patches to configure and configure.ac are required.
  27. if [ "${CARCH}" == "x86_64" ]
  28. then
  29. # apply patches
  30. patch ./configure configure.patch
  31. patch ./configure.ac configure.ac.patch
  32. fi
  33. install -d ${pkgdir}/usr
  34.  
  35. ./configure --prefix=${pkgdir}/usr
  36. make
  37. make all
  38. }
  39.  
  40. package() {
  41. cd ${srcdir}/$pkgname
  42.  
  43. make install
  44.  
  45. #License
  46. install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement