upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / wiznote / repos / community-x86_64 / PKGBUILD
blob77cd94a67d2b0ce288c13433582ce5fd091a9e09
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Albert.Zhou <albert.zhou@wiz.cn>
4 pkgname=wiznote
5 pkgver=2.8.5
6 _commit=2d4566aa1ff6e5a773d59e26df5ab07517931242
7 pkgrel=1
8 pkgdesc="Opensource cross-platform cloud based note-taking client"
9 arch=('x86_64')
10 url="https://www.wiz.cn"
11 license=('GPL3')
12 depends=('desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'qt5-websockets' 'qt5-webengine'
13          'qt5-svg') # 'crypto++')
14 # shared clucene/quazip triggers segfault
15 makedepends=('cmake' 'qt5-tools' 'boost')
16 source=("$pkgname-$_commit.tar.gz::https://github.com/WizTeam/WizQTClient/archive/$_commit.tar.gz")
17 sha512sums=('35b86abbde7d234b5ebcd66b9912ffddbf272a5ab7ff99ca408eb6a66366ab1c00a0c88241fd702f4f8d968c06a7c53722595eb4085938a5b5c726cfad38a832')
19 prepare() {
20   #sed -e 's/add_subdirectory(cryptopp)//' \
21   #    -i WizQTClient-$_commit/lib/CMakeLists.txt
22   #sed -e 's/cryptlib/cryptopp/' \
23   #    -i WizQTClient-$_commit/src/CMakeLists.txt
25   sed -i '/#include <QPainter>/a #include <QPainterPath>' WizQTClient-$_commit/src/sync/WizAvatarHost.cpp
27   rm -rf build; mkdir build
30 build() {
31   cd build
33   cmake \
34     -DCMAKE_INSTALL_PREFIX=/usr \
35     -DCMAKE_BUILD_TYPE=Release \
36     ../WizQTClient-$_commit
37   make
40 package() {
41   cd build
42   make DESTDIR="$pkgdir" install