diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /libre/liferea-libre | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'libre/liferea-libre')
-rw-r--r-- | libre/liferea-libre/PKGBUILD | 43 | ||||
-rw-r--r-- | libre/liferea-libre/libnotify-0.7.patch | 21 | ||||
-rw-r--r-- | libre/liferea-libre/liferea.install | 21 | ||||
-rw-r--r-- | libre/liferea-libre/remove-non-free-suggestions.patch | 50 |
4 files changed, 135 insertions, 0 deletions
diff --git a/libre/liferea-libre/PKGBUILD b/libre/liferea-libre/PKGBUILD new file mode 100644 index 000000000..6a9a4a394 --- /dev/null +++ b/libre/liferea-libre/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 204300 2014-01-16 22:28:49Z eric $ +# Maintainer: Eric Bélanger <eric@archlinux.org> +# Contributor (Parabola): bitlord +# Contributor (Parabola): André Silva <emulatorman@parabola.nu> + +_pkgname=liferea +pkgname=liferea-libre +pkgver=1.10.5 +pkgrel=1.1 +pkgdesc="A desktop news aggregator for online news feeds and weblogs, without nonfree suggestions" +arch=('i686' 'x86_64') +url="http://liferea.sourceforge.net/" +provides=("liferea=$pkgver") +replaces=('liferea') +conflicts=('liferea') +license=('GPL') +depends=('webkitgtk' 'libnotify' 'json-glib' 'libpeas' 'python2-gobject' + 'gnome-icon-theme' 'desktop-file-utils') +makedepends=('intltool') +optdepends=('gnome-keyring: for keyring plugin support' + 'libgnome-keyring: for keyring plugin support' + 'gst-plugins-base: for media player plugin support' + 'gst-plugins-good: for media player plugin support' + 'gst-plugins-bad: for media player plugin support') +options=('!emptydirs') +install=liferea.install +source=(https://github.com/lwindolf/liferea/releases/download/v${pkgver}/liferea-${pkgver}.tar.bz2 + remove-non-free-suggestions.patch) +sha1sums=('a2378f2ba117fcc6475f82d961515adc367ef535' + '855de60c91b5fee71c7ec88dd04b7d24a02dc0d1') + +build() { + cd liferea-${pkgver} + # remove nonfree suggestions + patch -Np1 -i "$srcdir/remove-non-free-suggestions.patch" + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-schemas-compile + make +} + +package() { + cd liferea-${pkgver} + make DESTDIR="${pkgdir}" install +} diff --git a/libre/liferea-libre/libnotify-0.7.patch b/libre/liferea-libre/libnotify-0.7.patch new file mode 100644 index 000000000..6dbbffb87 --- /dev/null +++ b/libre/liferea-libre/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/libre/liferea-libre/liferea.install b/libre/liferea-libre/liferea.install new file mode 100644 index 000000000..7fff91b49 --- /dev/null +++ b/libre/liferea-libre/liferea.install @@ -0,0 +1,21 @@ +pkgname=liferea + +post_install() { + glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +pre_upgrade() { + if [ -f usr/share/gconf/schemas/$pkgname.schemas ]; then + gconfpkg --uninstall $pkgname + fi +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/libre/liferea-libre/remove-non-free-suggestions.patch b/libre/liferea-libre/remove-non-free-suggestions.patch new file mode 100644 index 000000000..5024f19ee --- /dev/null +++ b/libre/liferea-libre/remove-non-free-suggestions.patch @@ -0,0 +1,50 @@ +diff --git a/src/browser.c b/src/browser.c +index f91901f..28b0c2b 100644 +--- a/src/browser.c ++++ b/src/browser.c +@@ -35,23 +35,16 @@ static struct browser browsers[] = { + NULL, NULL + }, + { +- /* tested with Firefox 1.5 and 2.0 */ +- "firefox", "Firefox", "firefox \"%s\"", +- NULL, "firefox -a firefox -remote \"openURL(%s)\"", +- NULL, "firefox -a firefox -remote 'openURL(%s,new-window)'", +- NULL, "firefox -a firefox -remote 'openURL(%s,new-tab)'" ++ "iceweasel", "Iceweasel", "iceweasel %s", ++ NULL, "iceweasel \"%s\"", ++ NULL, "iceweasel -new-window \"%s\"", ++ NULL, "iceweasel -new-tab \"%s\"" + }, + { +- "google-chrome", "Chrome", "google-chrome \"%s\"", +- NULL, NULL, +- NULL, NULL, +- NULL, NULL +- }, +- { +- "opera", "Opera", "opera \"%s\"", +- "opera \"%s\"", "opera -remote \"openURL(%s)\"", +- "opera -newwindow \"%s\"", NULL, +- "opera -newpage \"%s\"", NULL ++ "icecat", "Icecat", "icecat %s", ++ NULL, "icecat \"%s\"", ++ NULL, "icecat -new-window \"%s\"", ++ NULL, "icecat -new-tab \"%s\"" + }, + { + "epiphany", "Epiphany", "epiphany \"%s\"", +@@ -60,13 +53,6 @@ static struct browser browsers[] = { + "epiphany -n \"%s\"", NULL + }, + { +- /* tested with SeaMonkey 1.0.6 */ +- "mozilla", "Mozilla", "mozilla %s", +- NULL, "mozilla -remote openURL(%s)", +- NULL, "mozilla -remote 'openURL(%s,new-window)'", +- NULL, "mozilla -remote 'openURL(%s,new-tab)'" +- }, +- { + "konqueror", "Konqueror", "kfmclient openURL \"%s\"", + NULL, NULL, + NULL, NULL, |