1 # Maintainer: D. Can Celasun <dcelasun[at]gmail[dot]com>
6 pkgdesc="RSS feed updates indicator"
8 url="http://code.google.com/p/feedindicator/"
10 depends=('gtk2>=2.12' 'xdg-utils' 'libnotify' 'indicator-application' 'hicolor-icon-theme' 'libdbusmenu' 'python2>=2.3' 'python-feedparser')
11 install='indicator-feed.install'
13 source=(http://feedindicator.googlecode.com/files/feedindicator-20110208.tar.gz)
14 md5sums=('fffbddf363825188da5a4ae7ad41ab00')
18 # Fix the python shebang
19 export PYTHON="/usr/bin/python2"
20 sed -i 's|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' feedindicator.py
23 mkdir -p $pkgdir/usr/share/feedindicator
24 mkdir -p $pkgdir/usr/bin
26 # Copy app icons and desktop
27 cp feedindicator-logo.png $pkgdir/usr/share/feedindicator
28 cp feedindicator-icon.png $pkgdir/usr/share/feedindicator
30 # Copy and fix the executable
31 cp feedindicator.py $pkgdir/usr/bin/feedindicator
32 chmod +x $pkgdir/usr/bin/feedindicator
35 cp dark $pkgdir/usr/share/feedindicator -R
36 cp light $pkgdir/usr/share/feedindicator -R
37 cp hicolor $pkgdir/usr/share/feedindicator -R
40 # Fix the stupidly coded desktop file and move it
41 sed -i 's|Exec=python /usr/bin/feedindicator.py|Exec=/usr/bin/feedindicator|' Feedindicator.desktop
42 cp Feedindicator.desktop $pkgdir/usr/share/feedindicator