Date: Wednesday, January 25, 2017 @ 04:09:29
  Author: bgyorgy
Revision: 208952

upgpkg: shadowsocks-qt5 2.8.0-4

Remove unneeded libappindicator-gtk2 dependency. It was used due to a 
bug in Qt < 5.4.2. See: https://bugreports.qt.io/browse/QTBUG-32811

Added:
  shadowsocks-qt5/trunk/disable-appindicator.patch
Modified:
  shadowsocks-qt5/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   17 +++++++++++++----
 disable-appindicator.patch |   12 ++++++++++++
 2 files changed, 25 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-01-25 03:51:28 UTC (rev 208951)
+++ PKGBUILD    2017-01-25 04:09:29 UTC (rev 208952)
@@ -4,16 +4,25 @@
 
 pkgname=shadowsocks-qt5
 pkgver=2.8.0
-pkgrel=3
+pkgrel=4
 pkgdesc="A fast, reliable and cross-platform GUI fronted for Shadowsocks."
 arch=("i686" "x86_64")
 url="http://github.com/shadowsocks/shadowsocks-qt5";
 license=("GPL")
-depends=('qrencode' 'libqtshadowsocks' 'zbar' 'libappindicator-gtk2')
+depends=('qrencode' 'libqtshadowsocks' 'zbar')
 makedepends=('git')
-source=("http://github.com/shadowsocks/shadowsocks-qt5/archive/v$pkgver.tar.gz";)
-sha256sums=('dd983eb7de8a79346bd30a2b043baeaf24b1c54501ed6c7d4608dd54d2abb910')
+source=("$pkgname-$pkgver.tar.gz::http://github.com/shadowsocks/shadowsocks-qt5/archive/v$pkgver.tar.gz";
+        "disable-appindicator.patch")
+sha256sums=('dd983eb7de8a79346bd30a2b043baeaf24b1c54501ed6c7d4608dd54d2abb910'
+            'd4dc3c22a46e57b800400c8a5eaf10dfaac0bc17440806f2b572cae3998a9080')
 
+prepare() {
+  cd shadowsocks-qt5-$pkgver
+
+  # Disable appindicator (was needed for Qt < 5.4.2)
+  patch -Np1 -i ../disable-appindicator.patch
+}
+
 build() {
   cd shadowsocks-qt5-$pkgver
   qmake INSTALL_PREFIX=/usr

Added: disable-appindicator.patch
===================================================================
--- disable-appindicator.patch                          (rev 0)
+++ disable-appindicator.patch  2017-01-25 04:09:29 UTC (rev 208952)
@@ -0,0 +1,12 @@
+diff -Naur shadowsocks-qt5-2.8.0.orig/src/ss-qt5.pri 
shadowsocks-qt5-2.8.0/src/ss-qt5.pri
+--- shadowsocks-qt5-2.8.0.orig/src/ss-qt5.pri  2016-12-14 22:56:30.000000000 
+0100
++++ shadowsocks-qt5-2.8.0/src/ss-qt5.pri       2017-01-25 04:42:25.227070273 
+0100
+@@ -68,8 +68,4 @@
+ unix: {
+     CONFIG    += link_pkgconfig
+     PKGCONFIG += libqrencode QtShadowsocks botan-$$BOTAN_VER zbar
+-    !macx: {
+-        PKGCONFIG += gtk+-2.0 appindicator-0.1
+-        DEFINES   += USE_APP_INDICATOR
+-    }
+ }

Reply via email to