Permalink
Browse files

qt5-qtjsondb: add module qtjsondb PKGBUILD

Signed-off-by: Sergio Correia <sergio.correia@uece.net>
  • Loading branch information...
1 parent c036ae6 commit 3eb7f244742892dafc18d6ba2a9c54542f7bb3c5 Sergio Correia committed Oct 4, 2012
Showing with 38 additions and 0 deletions.
  1. +38 −0 qt5-qtjsondb-git/PKGBUILD
View
38 qt5-qtjsondb-git/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Sergio Correia <sergio.correia@uece.net>
+# Contributor: Anselmo L. S. Melo <anselmolsm@gmail.com>
+
+pkgname=qt5-qtjsondb-git
+pkgver=20121004
+pkgrel=1
+pkgdesc="Qt 5: qtjsondb module"
+groups=('qt5' 'qt5-addons')
+arch=('i686' 'x86_64' 'armv6h')
+url="https://qt.gitorious.org/qt/qtjsondb"
+license=('LGPL')
+depends=('libedit' 'qt5-qtbase-git' 'qt5-qtdeclarative-git')
+makedepends=('git')
+options=('!libtool')
+source=()
+md5sums=()
+
+_gitroot="git://gitorious.org/qt/qtjsondb.git"
+_gitname=qt5-qtjsondb
+
+build() {
+ if [ ! -d "${_gitname}" ]; then
+ git clone ${_gitroot} ${_gitname} && cd ${_gitname}
+ else
+ cd ${_gitname} && git reset --hard && git pull origin && git clean -dfx
+ fi
+
+ msg "GIT checkout done."
+
+ /opt/qt5/bin/qmake
+ make
+}
+
+package() {
+ cd "${_gitname}"
+
+ make INSTALL_ROOT="${pkgdir}" install
+}

0 comments on commit 3eb7f24

Please sign in to comment.