Date: Sunday, August 12, 2018 @ 00:48:25
  Author: farseerfc
Revision: 371198

upgpkg: flameshot 0.5.1-6

flameshot fix zh_TW locale loading

Modified:
  flameshot/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-08-11 23:39:15 UTC (rev 371197)
+++ PKGBUILD    2018-08-12 00:48:25 UTC (rev 371198)
@@ -3,7 +3,7 @@
 
 pkgname=flameshot
 pkgver=0.5.1
-pkgrel=5
+pkgrel=6
 pkgdesc="Powerful yet simple to use screenshot software"
 arch=('x86_64')
 url="https://github.com/lupoDharkael/flameshot";
@@ -17,16 +17,19 @@
        )
 sha256sums=('35220eabb8c4203abb0732c63e0b4d955e17ddd0c03c3d2c7a5beb875728e44e'
             'ad8d85d72e0729fb7629f04b1250fab354340987efd58f3fdd09ae6a7f075b27'
-            '2f5b165f43831f1447b28df57cb3853a0eeaa9a52b72faddc06764e4e8715ac2'
+            '25cade2e09da0afa77e62178d847d4198407cff6a198bb6db7c14db128f3921e'
             'e6479eb2a6e489e33a57d74f25c00adead799d4bd2af9e013f92b2f22d59f50d')
 install="${pkgname}.install"
 
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 <../pr174.patch
-  patch -Np1 <../pr149.patch
-  patch -Np1 <../pr171.patch
+  patch -Np1 -i ../pr174.patch
+  patch -Np1 -i ../pr149.patch
+  patch -Np1 -i ../pr171.patch
 
+  ## fix locale setting
+  sed -i 's|QLocale::system[(][)][.]language[(][)]|QLocale()|' src/main.cpp
+
   ## add a version number from pkgver
   sed -i "s|TAG_VERSION = .*|TAG_VERSION = v${pkgver}|" flameshot.pro 
 }

Reply via email to