[arch-commits] Commit in flameshot/trunk (3 files)

Jiachen Yang farseerfc at archlinux.org
Fri Apr 6 07:48:11 UTC 2018


    Date: Friday, April 6, 2018 @ 07:48:10
  Author: farseerfc
Revision: 314562

upgpkg: flameshot 0.5.1-3

flameshot 0.5.1-3 add optdepends libappindicator-gtk3

Added:
  flameshot/trunk/flameshot.install
Modified:
  flameshot/trunk/PKGBUILD
Deleted:
  flameshot/trunk/flameshot.install

-------------------+
 PKGBUILD          |    3 ++-
 flameshot.install |   31 ++++++++++++++++++++++---------
 2 files changed, 24 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-06 07:30:35 UTC (rev 314561)
+++ PKGBUILD	2018-04-06 07:48:10 UTC (rev 314562)
@@ -3,7 +3,7 @@
 
 pkgname=flameshot
 pkgver=0.5.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Powerful yet simple to use screenshot software"
 arch=('x86_64')
 url="https://github.com/lupoDharkael/flameshot"
@@ -10,6 +10,7 @@
 license=('GPL')
 depends=('qt5-base')
 makedepends=('make' 'qt5-tools')
+optdepends=('libappindicator-gtk3: For Gnome3 tray icon support')
 source=("https://github.com/lupoDharkael/flameshot/archive/v${pkgver}.tar.gz"
 	"pr174.patch::https://github.com/lupoDharkael/flameshot/commit/986b7741428e1f00a5b0688e254665eab90c025a.patch"
 	"pr149.patch::https://github.com/lupoDharkael/flameshot/commit/1bf282921744d3b3332d626c3ca00367ac7e6a44.patch"

Deleted: flameshot.install
===================================================================
--- flameshot.install	2018-04-06 07:30:35 UTC (rev 314561)
+++ flameshot.install	2018-04-06 07:48:10 UTC (rev 314562)
@@ -1,9 +0,0 @@
-post_upgrade(){
-	if [ $(vercmp $2 0.5.1) -lt 0 ]; then
-		post_install
-	fi
-}
-
-post_install(){
-	echo "See the link about keyboard shortcuts: https://github.com/lupoDharkael/flameshot#keyboard-shortcuts"
-}

Added: flameshot.install
===================================================================
--- flameshot.install	                        (rev 0)
+++ flameshot.install	2018-04-06 07:48:10 UTC (rev 314562)
@@ -0,0 +1,22 @@
+echo_shortcut() {
+	echo "See the link about keyboard shortcuts: https://github.com/lupoDharkael/flameshot#keyboard-shortcuts"
+}
+
+echo_gnome3() {
+	echo "For Gnome3 users: please install libappindicator-gtk3 and one of the tray icons extension to use the systray icons"
+}
+
+post_upgrade(){
+	if [ $(vercmp $2 0.5.1) -lt 0 ]; then
+        echo_shortcut
+	fi
+
+	if [ $(vercmp $2 0.5.1-3) -lt 0 ]; then
+        echo_gnome3
+	fi
+}
+
+post_install(){
+    echo_shortcut
+    echo_gnome3
+}



More information about the arch-commits mailing list