diff options
Diffstat (limited to 'community/wiznote/PKGBUILD')
-rw-r--r-- | community/wiznote/PKGBUILD | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/community/wiznote/PKGBUILD b/community/wiznote/PKGBUILD index 76bebe9a3..52da7ef04 100644 --- a/community/wiznote/PKGBUILD +++ b/community/wiznote/PKGBUILD @@ -1,28 +1,43 @@ -# $Id: PKGBUILD 101247 2013-11-20 14:03:11Z fyan $ +# $Id: PKGBUILD 111661 2014-05-22 09:28:35Z fyan $ # Maintainer: Felix Yan <felixonmars@gmail.com> # Contributor: Albert.Zhou <albert.zhou@wiz.cn> pkgname=wiznote -pkgver=2.0.64 +pkgver=2.1.7 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' 'qt5-base' 'qt5-webkit') # indirect: qt5-declarative qt5-sensors zlib glic gcc-libs -makedepends=('cmake' 'qt5-tools' 'git') +makedepends=('cmake' 'qt5-tools' 'git' 'boost') install=wiznote.install _wiznote_project_name="WizQTClient" -source=("git+https://github.com/WizTeam/${_wiznote_project_name}.git#tag=v$pkgver") +source=("git+https://github.com/WizTeam/${_wiznote_project_name}.git#branch=v$pkgver") md5sums=('SKIP') +prepare() { + # This case change doesn't make any sense, really... + sed -i "s/Exec=wiznote/Exec=WizNote/" $_wiznote_project_name/build/common/wiznote.desktop + + # And this... + rm $_wiznote_project_name/share/skins/default/Thumbs.db + + rm -rf build; mkdir build +} + build() { - cd $_wiznote_project_name - cmake -DWIZNOTE_USE_QT5=YES -DCMAKE_INSTALL_PREFIX=/usr/ . - make + cd build + + cmake \ + -DWIZNOTE_USE_QT5=YES \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + ../$_wiznote_project_name + make } package() { - cd $_wiznote_project_name - make DESTDIR="$pkgdir/" install + cd build + make DESTDIR="$pkgdir/" install } |