Want more features on Pastebin? Sign Up, it's FREE!
Guest

retext 4.1.0 PKGBUILD

By: a guest on Sep 11th, 2013  |  syntax: Bash  |  size: 2.22 KB  |  views: 123  |  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: Alessio Sergi <asergi at archlinux dot us>
  3. # Contributor: alfplayer
  4. # Contributor: menta
  5.  
  6. pkgname=retext
  7. pkgver=4.1.0
  8. _pkgver=4.1
  9. pkgrel=1
  10. pkgdesc="A simple editor for Markdown and ReStructuredText markup languages"
  11. arch=('any')
  12. url="http://retext.sourceforge.net/"
  13. license=('GPL3')
  14. # for desktop integration: 'shared-mime-info' 'xdg-utils' 'desktop-file-utils'
  15. # for toolbar icons (see http://sourceforge.net/p/retext/tickets/44/): 'gconf'
  16. depends=('python-pyqt4' 'python-markups' 'shared-mime-info' 'xdg-utils' 'desktop-file-utils' 'gconf')
  17. makedepends=('imagemagick')
  18. optdepends=('python-markdown: for Markdown language support'
  19.             'python-docutils: for reStructuredText language support'
  20.             'python-pyenchant: for spell checking support')
  21. source=("http://downloads.sourceforge.net/project/${pkgname}/ReText-${_pkgver}/ReText-${pkgver}.tar.gz"
  22.         "${pkgname}.desktop"
  23.         "x-retext-markdown.xml"
  24.         "x-retext-rst.xml")
  25. install="${pkgname}".install
  26. sha256sums=('7fb1207acbe8b6ef87eaeda2338a99214990b68d12c951d71ffaeb9527f08b29'
  27.             '7782f4402fe62e48335c1bdd5c1fd5cbb48c408fabaf4f018a074f8b3eef838e'
  28.             'b51611479d3224eec2b58264ed91ace3eccb502b7b806dae3e7a3ab4aab8c4b8'
  29.             '6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
  30.  
  31.  
  32. package () {
  33.     cd "$srcdir/ReText-${pkgver}"
  34.     python setup.py install --root="$pkgdir"
  35.  
  36.     # create /usr/share/* dirs
  37.     _SHAREDIR="$pkgdir/usr/share"
  38.     install -d -m 755 $_SHAREDIR/{applications,mime/packages}
  39.  
  40.     # install icons
  41.     _ICONSDIR="$_SHAREDIR/icons/hicolor"
  42.     for size in 16 22 24 32 48 128; do
  43.       install -d -m 755 $_ICONSDIR/${size}x${size}/apps
  44.       convert -resize $size icons/$pkgname.png $_ICONSDIR/${size}x${size}/apps/$pkgname.png
  45.     done
  46.     install -d -m 755 $_ICONSDIR/scalable/apps
  47.     install -m 644 icons/$pkgname.svg $_ICONSDIR/scalable/apps/$pkgname.svg
  48.  
  49.     # install mime files
  50.     install -m 644 $srcdir/x-retext-{markdown,rst}.xml $_SHAREDIR/mime/packages/
  51.  
  52.     # install desktop file
  53.     install -m 644 $srcdir/$pkgname.desktop $_SHAREDIR/applications/$pkgname.desktop
  54. }
  55.  
  56. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data