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

retext PKGBUILD 2.1.2

By: alfplayer on Nov 25th, 2011  |  syntax: Bash  |  size: 1.43 KB  |  views: 50  |  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. # Maintainer:   Bartosz Chmura <chmurli@gmail.com>
  2. # Contributor:  alfplayer
  3.  
  4. pkgname=retext
  5. pkgver=2.1.2
  6. pkgrel=1
  7. pkgdesc="Text editor for Markdown and reStructuredText"
  8. arch=('any')
  9. url="http://sourceforge.net/p/retext/"
  10. license=('GPL3')
  11. depends=('python2'
  12.          'python2-qt'
  13.          'python-markdown'
  14.          'qt>=4')
  15. optdepends=('python-gdata: needed if you want to use Google Docs export')
  16. source=("http://sourceforge.net/projects/retext/files/ReText-${pkgver%.*}/ReText_${pkgver}.tar.gz"
  17.         'retext.desktop')
  18. options=(!strip docs)
  19. md5sums=('dcd7223e7ac0f1a806973cfde60105df'
  20.          '82186876da0a52991d3f81324a52401d')
  21.  
  22. build () {
  23.  
  24.         # Use Python 2
  25.         sed -i '1s/python/python2/' retext.py wpgen/wpgen.py
  26.  
  27. }
  28.  
  29. package () {
  30.  
  31.         share_dir=${pkgdir}/usr/share
  32.  
  33.         retext_dir=${share_dir}/${pkgname}
  34.  
  35.         # Create directories
  36.         install -d -m 755 ${pkgdir}/usr/bin ${share_dir}/{wpgen,icons,mime/packages,applications,${pkgname}/{locale,doc}}
  37.  
  38.         # Install scripts retext and wpgen
  39.         install -m 755 ${pkgname}.py ${pkgdir}/usr/bin/retext
  40.         install -m 755 wpgen/wpgen.py ${pkgdir}/usr/bin/wpgen
  41.  
  42.         install -m 644 README ${retext_dir}/doc/
  43.  
  44.         # Install translation files
  45.         install -m 644 locale/* ${retext_dir}/locale/
  46.  
  47.         # Install wpgen data
  48.         install -m 644 wpgen/templates/* ${share_dir}/wpgen/
  49.  
  50.         # Install icon
  51.         install -m 644 icons/* ${share_dir}/icons/
  52.  
  53.         # Install .desktop file
  54.         install -m 644 retext.desktop ${share_dir}/applications/
  55.  
  56. }
  57.  
clone this paste RAW Paste Data