git » nextcloud-client.git » commit e8ba346

* Add a patch for FS#63939

author Chih-Hsuan Yen
2019-10-01 06:33:55 UTC
committer Chih-Hsuan Yen
2019-10-01 06:33:55 UTC
parent 52b0e34431a63c033a9d4507dfb1c63f1b7a8cf0

* Add a patch for FS#63939


Upstream issue: https://github.com/nextcloud/desktop/issues/1458
Upstream fix: https://github.com/nextcloud/desktop/pull/1461 (merged)

PKGBUILD +8 -3

diff --git a/PKGBUILD b/PKGBUILD
index ccaaa4b..6c25801 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=nextcloud-client
 pkgver=2.6.0
 _commit=e0b32c19e4dd641f4edf74fc3fbdba3d86ca9784
-pkgrel=1
+pkgrel=2
 pkgdesc='Nextcloud desktop client'
 arch=(x86_64)
 url='https://nextcloud.com/'
@@ -18,11 +18,13 @@ optdepends=(
   'python-nautilus: integration with Nautilus'
   'python2-caja: integration with Caja'
 )
-source=("$pkgname::git+https://github.com/nextcloud/desktop.git?signed#commit=$_commit")
+source=("$pkgname::git+https://github.com/nextcloud/desktop.git?signed#commit=$_commit"
+        issue1458.patch::https://github.com/nextcloud/desktop/commit/481d8d3a0bcd26a3fd2b0d4fc6fb009260092bb1.patch)
 validpgpkeys=(
   A26B951528EA1BA1678C7AE5D406C75CEE1A36D6  # one of keys controlled by github.com/camilasan
 )
-sha256sums=('SKIP')
+sha256sums=('SKIP'
+            '8e3129fbbda282d5b0fbc1f3d495338c18fd19f639301647eb5f853b713c369c')
 backup=('etc/Nextcloud/sync-exclude.lst')
 
 prepare() {
@@ -32,6 +34,9 @@ prepare() {
   # Use system GNUInstallDirs.cmake so that we can benefit from
   # https://gitlab.kitware.com/cmake/cmake/merge_requests/3735
   rm -v $pkgname/cmake/modules/GNUInstallDirs.cmake
+
+  cd $pkgname
+  patch -Np1 -i ../issue1458.patch
 }
 
 build() {