Advertisement
Guest User

Untitled

a guest
Aug 26th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. # Contributor: Star Brilliant <echo bTEzMjUzQGhvdG1haWwuY29tCg== | base64 -d>
  2.  
  3. _pkgname=translate-shell
  4. pkgname=translate-shell-git
  5. pkgver=v0.8.19.r2.gf45d3f5
  6. pkgrel=1
  7. pkgdesc='A command-line interface and interactive shell for Google Translate.'
  8. arch=('any')
  9. url="http://www.soimort.org/translate-shell/"
  10. license=('Public Domain')
  11. depends=('gawk')
  12. makedepends=('git')
  13. optdepents=(
  14.     'bash: for interpreting the wrapper script'
  15.     'fribidi: needed for displaying right-to-left (RTL) languages'
  16.     'mplayer: needed for the Text-to-Speech functionality'
  17.     'mpg123: needed for the Text-to-Speech functionality'
  18.     'espeak: needed for the Text-to-Speech functionality'
  19.     'rlwrap: needed for readline-style editing and history in the interactive mode'
  20.     'groff: needed for formatting man pages'
  21.     'emacs: for using the Emacs interface'
  22. )
  23. provides=('translate-shell')
  24. conflicts=('translate-shell')
  25. source=('git://github.com/soimort/translate-shell.git')
  26. md5sums=('SKIP')
  27.  
  28. pkgver() {
  29.     cd "$_pkgname"
  30.     git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
  31. }
  32.  
  33. build() {
  34.     cd "$srcdir/translate-shell"
  35.     make
  36. }
  37.  
  38. package() {
  39.     mkdir -p "$pkgdir/usr/bin/"
  40.     cd "$srcdir/translate-shell"
  41.     make "INSTDIR=$pkgdir/usr/bin" install
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement