diff options
Diffstat (limited to 'testing/liferea')
-rw-r--r-- | testing/liferea/PKGBUILD | 38 | ||||
-rw-r--r-- | testing/liferea/libnotify-0.7.patch | 21 | ||||
-rw-r--r-- | testing/liferea/liferea.install | 22 |
3 files changed, 81 insertions, 0 deletions
diff --git a/testing/liferea/PKGBUILD b/testing/liferea/PKGBUILD new file mode 100644 index 000000000..14bbeaf7d --- /dev/null +++ b/testing/liferea/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 118815 2011-04-08 03:03:14Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=liferea +pkgver=1.6.5 +pkgrel=3 +pkgdesc="A desktop news aggregator for online news feeds and weblogs" +arch=('i686' 'x86_64') +url="http://liferea.sourceforge.net/" +license=('GPL') +depends=('gconf' 'libwebkit' 'libxslt' 'libglade' 'sqlite3' 'hicolor-icon-theme') +makedepends=('pkg-config' 'intltool' 'lua' 'libnotify') +optdepends=('lua: for lua scripting support' + 'libnotify: for notification support') +options=('!libtool' '!emptydirs') +install=liferea.install +source=(http://downloads.sourceforge.net/sourceforge/liferea/liferea-${pkgver}.tar.gz + libnotify-0.7.patch) +md5sums=('b5a2c0803eec5d0aff0b9ca4114eaf16' + 'fca97e3316c1c51e0179c4c7dcce47a2') +sha1sums=('f24dbd0e81c5a8309f0d19853211fc02ff818477' + '52e53dd11a0ffe62304c4f17e80bfe1412cfbf29') + +build() { + cd "${srcdir}/liferea-${pkgver}" + patch -Np1 -i "$srcdir/libnotify-0.7.patch" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-install + make +} + +package() { + cd "${srcdir}/liferea-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" "${pkgdir}"/etc/gconf/schemas/*.schemas + rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas +} diff --git a/testing/liferea/libnotify-0.7.patch b/testing/liferea/libnotify-0.7.patch new file mode 100644 index 000000000..6dbbffb87 --- /dev/null +++ b/testing/liferea/libnotify-0.7.patch @@ -0,0 +1,21 @@ +diff -u -Nr liferea-1.6.5/src/notification/libnotify.c liferea-1.6.5-libnotify/src/notification/libnotify.c +--- liferea-1.6.5/src/notification/libnotify.c 2009-06-20 20:33:19.000000000 +0200 ++++ liferea-1.6.5-libnotify/src/notification/libnotify.c 2011-03-06 23:53:45.783336455 +0100 +@@ -150,7 +150,7 @@ + // notify_notification_update ( n, node_get_title(node_p), labelText_now_p, NULL); + // notify_notification_clear_actions(n); + +- n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL, NULL); ++ n = notify_notification_new (node_get_title(node_p), labelText_now_p, NULL); + + notify_notification_set_icon_from_pixbuf (n,node_get_icon(node_p)); + +@@ -244,7 +244,7 @@ + + labelSummary_p = g_strdup_printf (ngettext ("%s has %d new / updated headline\n", "%s has %d new / updated headlines\n", item_count), + node_get_title (node), item_count); +- n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL, NULL); ++ n = notify_notification_new ( _("Feed Update"), labelSummary_p, NULL); + g_free(labelSummary_p); + + notify_notification_set_icon_from_pixbuf (n, node_get_icon (node)); diff --git a/testing/liferea/liferea.install b/testing/liferea/liferea.install new file mode 100644 index 000000000..7d812ccdb --- /dev/null +++ b/testing/liferea/liferea.install @@ -0,0 +1,22 @@ +pkgname=liferea + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |