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 Feb 27th, 2014  |  syntax: Bash  |  size: 1.02 KB  |  views: 21  |  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: Dmitry Korzhevin <dkorzhevin at gmail dot com>
  2. # Contributor: 4javier <4javier4@gmail.com>
  3. # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
  4. # Contributor: cameel <cameel2/gmail/com>
  5. # Contributor: Jonathan Liu <net147@gmail.com>
  6. pkgname=rednotebook
  7. pkgver=1.8.0
  8. pkgrel=2
  9. pkgdesc="A simple desktop diary"
  10. arch=('any')
  11. url="http://rednotebook.sourceforge.net"
  12. license=('GPL2')
  13. depends=('python2-gtkspell' 'pygtk' 'python2-yaml' 'pywebkitgtk' 'hicolor-icon-theme' 'librsvg')
  14. optdepends=('pywebkitgtk' 'python-chardet')
  15. install='rednotebook.install'
  16. source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz")
  17. md5sums=('91fc57ad5e8c3a4800f39bd482109177')
  18.  
  19. package() {
  20.   cd "$srcdir/$pkgname-$pkgver"
  21.   python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
  22.  
  23.   for _res in 16 22 32 64 128; do
  24.     install -D -m644 "build/lib/rednotebook/images/rednotebook-icon/rn-$_res.png" \
  25.       "$pkgdir/usr/share/icons/hicolor/${_res}x${_res}/apps/$pkgname.png"
  26.   done
  27. }