Date: Friday, April 20, 2018 @ 10:49:45 Author: bgyorgy Revision: 317161
Move feedreader from AUR with 57 votes Package git master, because the latest release is very buggy. Added: feedreader/ feedreader/trunk/ feedreader/trunk/PKGBUILD feedreader/trunk/locale.patch --------------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ locale.patch | 15 +++++++++++++++ 2 files changed, 66 insertions(+) Added: feedreader/trunk/PKGBUILD =================================================================== --- feedreader/trunk/PKGBUILD (rev 0) +++ feedreader/trunk/PKGBUILD 2018-04-20 10:49:45 UTC (rev 317161) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Andrew O'Neill <andrew at meanjollies dot com> +# Contributor: poisonby <[email protected]> +# Contributor: Jason Scurtu (scujas) <[email protected]> +# Contributor: Marcin Tydelski <[email protected]> +# Contributor: Jan Lukas Gernert (JeanLuc) <https://launchpad.net/~eviltwin1> + +pkgname=feedreader +_pkgname=FeedReader +pkgver=2.0.2+548+g08dfb5db +pkgrel=1 +pkgdesc="Modern desktop application designed to complement existing web-based RSS accounts" +arch=(x86_64) +url="https://github.com/jangernert/FeedReader" +license=(GPL3) +depends=(curl gnome-online-accounts libgee libpeas) +makedepends=(cmake git gobject-introspection vala) +_commit=08dfb5dbcf1e04219ae8717dd55449d497e0eba4 # master +source=("git+https://github.com/jangernert/$_pkgname#commit=$_commit" + "git+https://github.com/fivefilters/ftr-site-config" + "locale.patch") +sha256sums=('SKIP' + 'SKIP' + '65be277a3d7b775cb03b1db06d1e4de0bd5d3c8484308ca2fa486ffb03be2346') + +pkgver() { + cd $_pkgname + git describe --tags | sed 's/^v//;s/-/+/g' +} + +prepare() { + cd $_pkgname + git config submodule.data/GrabberConfig.url "$srcdir/ftr-site-config" + git submodule update --init + mkdir build + + # Fix parsing date on non English locales + patch -Np1 -i ../locale.patch +} + +build() { + cd $_pkgname/build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DGSETTINGS_COMPILE=OFF + make +} + +package() { + cd $_pkgname/build + make DESTDIR="$pkgdir" install +} Property changes on: feedreader/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: feedreader/trunk/locale.patch =================================================================== --- feedreader/trunk/locale.patch (rev 0) +++ feedreader/trunk/locale.patch 2018-04-20 10:49:45 UTC (rev 317161) @@ -0,0 +1,15 @@ +diff --git a/plugins/backend/local/localInterface.vala b/plugins/backend/local/localInterface.vala +index 121be42a..9508f73a 100644 +--- a/plugins/backend/local/localInterface.vala ++++ b/plugins/backend/local/localInterface.vala +@@ -603,7 +603,10 @@ public class FeedReader.localInterface : Peas.ExtensionBase, FeedServerInterface + if(item.pub_date != null) + { + GLib.Time time = GLib.Time(); ++ var savedlocale = GLib.Intl.setlocale(GLib.LocaleCategory.ALL); ++ GLib.Intl.setlocale(GLib.LocaleCategory.ALL, "C"); + time.strptime(item.pub_date, "%a, %d %b %Y %H:%M:%S %Z"); ++ GLib.Intl.setlocale(GLib.LocaleCategory.ALL, savedlocale); + date = new GLib.DateTime.local(1900 + time.year, 1 + time.month, time.day, time.hour, time.minute, time.second); + + if(date == null)
