summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d57544e44116ca19f4e12e8da59bffd87627ee63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer:  Leon     <leon.tty1 at gmail dot com>
# Contributor: proudzhu <proudzhu.fdu at gmail.com>
# Contributor: Felix Yan <felixonmars@gmail.com>
# Contributor: Albert.Zhou <albert.zhou@wiz.cn>

pkgname=wiznote-qt4
pkgver=2.3.3
pkgrel=1
pkgdesc="Opensource cross-platform cloud based note-taking client"
arch=('i686' 'x86_64')
url="http://www.wiznote.com"
license=('GPL3' 'custom')
depends=('desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'crypto++' 'qtwebkit')
# shared clucene/quazip triggers segfault
makedepends=('cmake' 'git' 'boost')
conflicts=('wiznote')
provides=(wiznote=$pkgver)
install=wiznote.install
_wiznote_project_name="WizQTClient"
source=("git+https://github.com/WizTeam/${_wiznote_project_name}.git#branch=v2.3.3")
md5sums=('SKIP')

prepare() {
  rm -f $_wiznote_project_name/share/skins/default/Thumbs.db

  sed -e 's/add_subdirectory(cryptopp)//' \
      -i $_wiznote_project_name/lib/CMakeLists.txt

  sed -e 's/cryptlib/cryptopp/' \
      -i $_wiznote_project_name/src/CMakeLists.txt

  rm -rf build; mkdir build
}

build() {
  cd build

  # qt5 version is unusable
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    ../$_wiznote_project_name
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir/" install
}