[arch-commits] Commit in sparkleshare/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 16:43:37 UTC 2020


    Date: Tuesday, July 7, 2020 @ 16:43:37
  Author: felixonmars
Revision: 659384

archrelease: copy trunk to community-staging-any

Added:
  sparkleshare/repos/community-staging-any/
  sparkleshare/repos/community-staging-any/0001-Use-gtk-status-icon-by-default.patch
    (from rev 659382, sparkleshare/trunk/0001-Use-gtk-status-icon-by-default.patch)
  sparkleshare/repos/community-staging-any/PKGBUILD
    (from rev 659383, sparkleshare/trunk/PKGBUILD)

-------------------------------------------+
 0001-Use-gtk-status-icon-by-default.patch |   48 ++++++++++++++++++++++++
 PKGBUILD                                  |   55 ++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)

Copied: sparkleshare/repos/community-staging-any/0001-Use-gtk-status-icon-by-default.patch (from rev 659382, sparkleshare/trunk/0001-Use-gtk-status-icon-by-default.patch)
===================================================================
--- community-staging-any/0001-Use-gtk-status-icon-by-default.patch	                        (rev 0)
+++ community-staging-any/0001-Use-gtk-status-icon-by-default.patch	2020-07-07 16:43:37 UTC (rev 659384)
@@ -0,0 +1,48 @@
+From 12e9870bf9f41391f8de165d43196cb5b0cd5eee Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Mon, 10 Sep 2018 14:39:26 +0200
+Subject: [PATCH] Use gtk status icon by default
+
+---
+ SparkleShare/Linux/StatusIcon.cs    | 2 +-
+ SparkleShare/Linux/UserInterface.cs | 8 --------
+ 2 files changed, 1 insertion(+), 9 deletions(-)
+
+diff --git a/SparkleShare/Linux/StatusIcon.cs b/SparkleShare/Linux/StatusIcon.cs
+index b64f49e5..113a41c0 100644
+--- a/SparkleShare/Linux/StatusIcon.cs
++++ b/SparkleShare/Linux/StatusIcon.cs
+@@ -31,7 +31,7 @@ namespace SparkleShare {
+     public class StatusIcon {
+ 
+         public StatusIconController Controller = new StatusIconController ();
+-        public static bool use_appindicator = true;
++        public static bool use_appindicator = false;
+ 
+         Gtk.StatusIcon status_icon;
+ 
+diff --git a/SparkleShare/Linux/UserInterface.cs b/SparkleShare/Linux/UserInterface.cs
+index 74fd5559..eac9b4ae 100644
+--- a/SparkleShare/Linux/UserInterface.cs
++++ b/SparkleShare/Linux/UserInterface.cs
+@@ -92,17 +92,9 @@ namespace SparkleShare
+             if (args.Length > 0)
+                 Logger.LogInfo ("Environment", "Arguments: " + string.Join (" ", args));
+ 
+-            if (Array.IndexOf (args, "--status-icon=gtk") > -1)
+-                StatusIcon.use_appindicator = false;
+-
+             #if HAVE_APP_INDICATOR
+             if (Array.IndexOf (args, "--status-icon=appindicator") > -1)
+                 StatusIcon.use_appindicator = true;
+-            #else
+-            if (StatusIcon.use_appindicator) {
+-                Console.WriteLine ("AppIndicator not installed.");
+-                Environment.Exit (-1);
+-            }
+             #endif
+ 
+             if (StatusIcon.use_appindicator)
+-- 
+2.18.0
+

Copied: sparkleshare/repos/community-staging-any/PKGBUILD (from rev 659383, sparkleshare/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 16:43:37 UTC (rev 659384)
@@ -0,0 +1,55 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Jarek Sedlacek <JarekSedlacek at gmail.com>
+# Contributor: Erdbeerkaese <erdbeerkaese underscore arch at gmail dot com>
+
+pkgname=sparkleshare
+_pkgname=SparkleShare
+pkgver=3.28
+pkgrel=5
+pkgdesc="Collaboration and sharing tool based on git written in C Sharp"
+arch=('any')
+url="https://www.sparkleshare.org/"
+license=('GPL3')
+depends=('webkit2-sharp' 'notify-sharp-3' 'curl' 'git-lfs' 'openssh' 'gvfs')
+makedepends=(git meson)
+_commit=3176efc8c38f5effba780aa9bbc0b1d5a313129a  # tags/3.28
+source=("git+https://github.com/hbons/SparkleShare.git#commit=$_commit"
+        "0001-Use-gtk-status-icon-by-default.patch")
+sha256sums=('SKIP'
+            '748a4aa153689d59aa6145eb91b863d8f7668fcb901a7773befd44afd1f904d9')
+
+pkgver() {
+  cd $_pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $_pkgname
+
+  # Fix build
+  sed -i '/post-install.sh/d' meson.build
+
+  # Fix AppStream metadata validation
+  # https://github.com/hbons/SparkleShare/pull/1882
+  git cherry-pick -n e0c4e972d0b52ef71b0fafe6fb33511e429af955
+
+  # Don't use legacy path for AppStream metainfo file
+  # https://github.com/hbons/SparkleShare/pull/1883
+  git cherry-pick -n e6775a462a8c56926c9364ae4e4fe2bdbfc08798
+
+  # Add X-AppStream-Ignore property to autostart file
+  # https://github.com/hbons/SparkleShare/pull/1884
+  echo 'X-AppStream-Ignore=true' >>SparkleShare/Linux/SparkleShare.Autostart.desktop
+
+  # Use gtk status icon by default
+  patch -Np1 -i ../0001-Use-gtk-status-icon-by-default.patch
+}
+
+build() {
+  arch-meson $_pkgname build
+  ninja -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" meson install -C build
+}


More information about the arch-commits mailing list