1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Albert.Zhou <albert.zhou@wiz.cn>
6 _commit=2d4566aa1ff6e5a773d59e26df5ab07517931242
8 pkgdesc="Opensource cross-platform cloud based note-taking client"
10 url="https://www.wiz.cn"
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')
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
34 -DCMAKE_INSTALL_PREFIX=/usr \
35 -DCMAKE_BUILD_TYPE=Release \
36 ../WizQTClient-$_commit
42 make DESTDIR="$pkgdir" install