1 # Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
3 ##############################################################
4 #### The section below can be adjusted to suit your needs ####
5 ##############################################################
7 # What type of build do you want?
8 # See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
9 # Default is RelWithDebInfo to help with debugging.
11 _buildtype="RelWithDebInfo"
13 ##############################################################
18 pkgdesc="Qt XMPP library"
19 arch=('i686' 'x86_64')
20 url="https://github.com/euroelessar/jreen"
22 depends=('libidn' 'qca-ossl' 'zlib')
23 makedepends=('git' 'cmake>=2.6')
28 _gitroot="git://github.com/euroelessar/jreen.git"
33 msg "Connecting to GIT server..."
35 if [ -d ${_gitname} ]; then
36 cd ${_gitname} && git pull origin
38 git clone --depth 1 ${_gitroot}
41 msg "GIT checkout done or server timeout"
42 msg "Starting build..."
44 rm -rf ${srcdir}/${_gitname}-build
45 cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
46 cd ${srcdir}/${_gitname}-build
48 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype}
53 cd ${srcdir}/${_gitname}-build
54 make DESTDIR=${pkgdir} install