git » keepassxc.git » commit 40c4561

quazip 1.0 rebuild

author Antonio Rojas
2020-10-05 19:05:24 UTC
committer Antonio Rojas
2020-10-05 19:05:24 UTC
parent 984e07c3931d4e04b20d8aba019268dab0aea69f

quazip 1.0 rebuild

PKGBUILD +9 -3
keepassxc-quazip1.patch +19 -0

diff --git a/PKGBUILD b/PKGBUILD
index 37ede47..73870f8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=keepassxc
 pkgver=2.6.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Cross-platform community-driven port of Keepass password manager"
 arch=(x86_64)
 url="https://keepassxc.org/"
@@ -14,15 +14,21 @@ makedepends=(asciidoctor cmake qt5-tools)
 optdepends=('xclip: keepassxc-cli clipboard support under X server'
             'wl-clipboard: keepassxc-cli clipboard support under Wayland')
 provides=(org.freedesktop.secrets)
-source=(https://github.com/keepassxreboot/keepassxc/releases/download/$pkgver/keepassxc-$pkgver-src.tar.xz{,.sig})
+source=(https://github.com/keepassxreboot/keepassxc/releases/download/$pkgver/keepassxc-$pkgver-src.tar.xz{,.sig}
+        keepassxc-quazip1.patch)
 sha256sums=('b466759947fcd71a59b8d498a1f154cb7b85b4f2a0a417c92a75845d8bac8cc8'
-            'SKIP')
+            'SKIP'
+            '800a309f02a483eebcb06ca312800f03f9fea2ce9ecfd5fde2dae9e34c88ea88')
 # List of signing keys can be found at https://keepassxc.org/verifying-signatures/
 validpgpkeys=(BF5A669F2272CF4324C1FDA8CFB4C2166397D0D2
               71D4673D73C7F83C17DAE6A2D8538E98A26FD9C4
               AF0AEA44ABAC8F1047733EA7AFF235EEFB5A2517
               C1E4CBA3AD78D3AFD894F9E0B7A66F03B59076A8)
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 -i ../keepassxc-quazip1.patch # Fix build with quazip 1
+}
+
 build() {
     cmake -S keepassxc-$pkgver -B build \
         -DCMAKE_BUILD_TYPE=Release \
diff --git a/keepassxc-quazip1.patch b/keepassxc-quazip1.patch
new file mode 100644
index 0000000..ea5a964
--- /dev/null
+++ b/keepassxc-quazip1.patch
@@ -0,0 +1,19 @@
+diff --git a/cmake/FindQuaZip.cmake b/cmake/FindQuaZip.cmake
+index a387e2f8..9fab3e57 100644
+--- a/cmake/FindQuaZip.cmake
++++ b/cmake/FindQuaZip.cmake
+@@ -10,12 +10,12 @@ if(MINGW)
+     find_path(QUAZIP_ZLIB_INCLUDE_DIR zlib.h)
+ else()
+     find_library(QUAZIP_LIBRARIES
+-        NAMES quazip5 quazip
++        NAMES quazip5 quazip quazip1-qt5
+ 	PATHS /usr/lib /usr/lib64 /usr/local/lib
+     )
+     find_path(QUAZIP_INCLUDE_DIR quazip.h
+ 	PATHS /usr/include /usr/local/include
+-        PATH_SUFFIXES quazip5 quazip
++        PATH_SUFFIXES quazip5 quazip QuaZip-Qt5-1.0/quazip
+     )
+     find_path(QUAZIP_ZLIB_INCLUDE_DIR zlib.h PATHS /usr/include /usr/local/include)
+ endif()