You are not logged in.

#1 2010-09-09 18:19:04

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

[REQUEST] rss-aware

Hello can someone to make PKGBUILD for rss-aware  here is page of project

http://freelanzer.com/rss-aware/index.html

thanks.

Offline

#2 2010-09-09 23:06:04

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [REQUEST] rss-aware

I would be happy to, except it looks like a lot of it is Ubuntu-specfic, and it also states to install the script to your home directory, which is horrible practice when making PKGBUILDs. Of course, I could always change the script a little and move it to /usr/bin or something. wink

What do you think?

Offline

#3 2010-09-10 00:33:00

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [REQUEST] rss-aware

Well notify-osd is in AUR. Maybe add it as a dependency?

Offline

#4 2010-09-10 10:51:06

Kosava
Member
From: Serbia
Registered: 2008-08-19
Posts: 127

Re: [REQUEST] rss-aware

I think too it will be better to move on /usr/bin , script look nice perfect for openbox envioment

Offline

#5 2010-09-11 01:17:29

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [REQUEST] rss-aware

*sigh* Off to make some patches. smile

Offline

#6 2010-09-11 01:51:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [REQUEST] rss-aware

Looks like it requires libindicator (not notify-osd), which is part of the Ayatana project. "Ugly" would be a good word to describe this on multiple levels.

This is as far as I go: http://gist.github.com/574670

Offline

#7 2010-09-11 01:52:42

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [REQUEST] rss-aware

A couple of things to mention before it should be uploaded to the AUR:
* Someone needs to package python-appindicator wink
* Tell me if I am missing a dependency. I ran through them rather quickly
* And of course, tell me if something screws up. tongue

PKGBUILD:

# Maintainer: Brad Fanella <bradfanella@archlinux.us>
pkgname=rss-aware
pkgver=2235
_pkgver=20100909
pkgrel=1
pkgdesc="A program written in python that uses notify-osd to notify you about updates to a website using its rss feed  and appindicator to let you access that post"
arch=('any')
url=http://freelanzer.com/rss-aware/index.html
license=('GPL')
depends=('pygtk' 'python-feedparser' 'python-notify' 'pygobject' 'python-appindicator')
source=(http://freelanzer.com/${pkgname}/${pkgname}-${_pkgver}-${pkgver}.zip rss-aware.patch)
md5sums=('bdc73332e11b0c47f01c009ce952c574' '60a7d6441ce20eb76220b42daeeb5cb5')

build() {
        cd "$srcdir/${pkgname}-${_pkgver}-${pkgver}"
}

package() {
        cd "$srcdir/${pkgname}-${_pkgver}-${pkgver}"
        patch -p1 rss-aware.py < $srcdir/rss-aware.patch
        
        install -Dm755 rssaware32.png "$pkgdir/usr/share/$pkgname/rssaware32.png"
        install -Dm644 $pkgname.py "$pkgdir/usr/bin/$pkgname"
        touch $pkgdir/usr/share/rss-aware/rssfeeds.txt
        echo replace me with a url > $pkgdir/usr/share/rss-aware/rssfeeds.txt
}

rss-aware.patch:

--- rss-aware.py    2010-09-09 20:57:26.000000000 -0500
+++ rss-aware2.py    2010-09-09 20:13:19.520061411 -0500
@@ -48,7 +48,7 @@
 #change me to how often you want me to check
 refreshtime = 900
 #location of the rss-aware folder
-rss_aware_path = os.path.expanduser("~/.rss-aware/")
+rss_aware_path = os.path("/usr/share/rss-aware/")
 curdir = os.getcwd()
 # create a menu
 menu = gtk.Menu()
@@ -60,7 +60,7 @@
     #send a notification
     pynotify.init(rssFeed)
 
-    imageURI = 'file://' + os.path.expanduser("~/.rss-aware/") + '/rssaware32.png'
+    imageURI = 'file://' + os.path("/usr/share/rss-aware/") + '/rssaware32.png'
     #                            title    info        image
     n = pynotify.Notification(rssFeed, postTitle, imageURI)
     n.set_hint_string("x-canonical-append","")# this mergers same site posts but affects the second site making it not show :( why?

Last edited by cesura (2010-09-11 01:56:22)

Offline

#8 2010-09-11 01:55:14

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [REQUEST] rss-aware

falconindy wrote:

Looks like it requires libindicator (not notify-osd), which is part of the Ayatana project. "Ugly" would be a good word to describe this on multiple levels.

This is as far as I go: http://gist.github.com/574670

Okay...you win tongue I forgot a TON!
Use his ^^

EDIT: falconindy, you seem to have forgotten the:

rss_aware_path = os.path("~/.rss-aware/")

line. wink

[OT]My clock is a day behind. yikes[/OT]

Last edited by cesura (2010-09-11 02:00:06)

Offline

#9 2010-09-11 02:05:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [REQUEST] rss-aware

No I didn't smile. Leaving rss_aware_path in the home directory means you don't need to be root to add feeds, and they're set per user.

Offline

#10 2010-09-11 02:47:58

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [REQUEST] rss-aware

falconindy wrote:

No I didn't smile. Leaving rss_aware_path in the home directory means you don't need to be root to add feeds, and they're set per user.

Oh, I see. smile

echo "------------------------------------------"
echo "Add feed URLS to ~/.rss-aware/rssfeeds.txt"
echo "------------------------------------------"

Last edited by cesura (2010-09-11 02:48:08)

Offline

Board footer

Powered by FluxBB