[arch-commits] Commit in wiznote/trunk (PKGBUILD)

Felix Yan fyan at nymeria.archlinux.org
Thu May 22 09:27:13 UTC 2014


    Date: Thursday, May 22, 2014 @ 11:27:13
  Author: fyan
Revision: 111660

upgpkg: wiznote 2.1.7-1

Modified:
  wiznote/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-05-22 09:06:24 UTC (rev 111659)
+++ PKGBUILD	2014-05-22 09:27:13 UTC (rev 111660)
@@ -3,7 +3,7 @@
 # Contributor: Albert.Zhou <albert.zhou at wiz.cn>
 
 pkgname=wiznote
-pkgver=2.1.0_beta
+pkgver=2.1.7
 pkgrel=1
 pkgdesc="Opensource cross-platform cloud based note-taking client"
 arch=('i686' 'x86_64')
@@ -10,19 +10,34 @@
 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
 }




More information about the arch-commits mailing list