[arch-commits] Commit in feedreader (4 files)

Balló György bgyorgy at archlinux.org
Fri Apr 20 10:49:59 UTC 2018


    Date: Friday, April 20, 2018 @ 10:49:58
  Author: bgyorgy
Revision: 317162

archrelease: copy trunk to community-x86_64

Added:
  feedreader/repos/
  feedreader/repos/community-x86_64/
  feedreader/repos/community-x86_64/PKGBUILD
    (from rev 317161, feedreader/trunk/PKGBUILD)
  feedreader/repos/community-x86_64/locale.patch
    (from rev 317161, feedreader/trunk/locale.patch)

--------------+
 PKGBUILD     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 locale.patch |   15 +++++++++++++++
 2 files changed, 66 insertions(+)

Copied: feedreader/repos/community-x86_64/PKGBUILD (from rev 317161, feedreader/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2018-04-20 10:49:58 UTC (rev 317162)
@@ -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 <poisonby at tutanota.com>
+# Contributor: Jason Scurtu (scujas) <jscurtu at gmail.com>
+# Contributor: Marcin Tydelski <marcin.tydelski at gmail.com>
+# 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
+}

Copied: feedreader/repos/community-x86_64/locale.patch (from rev 317161, feedreader/trunk/locale.patch)
===================================================================
--- repos/community-x86_64/locale.patch	                        (rev 0)
+++ repos/community-x86_64/locale.patch	2018-04-20 10:49:58 UTC (rev 317162)
@@ -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)



More information about the arch-commits mailing list