# Maintainer: Kuba Serafinowski # https://github.com/zizzfizzix/pkgbuilds ############################################################## #### The section below can be adjusted to suit your needs #### ############################################################## # What type of build do you want? # See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported. _buildtype='RelWithDebInfo' ############################################################## pkgname=jreen-git pkgver=v1.1.1.17.g9cb0ae2 pkgrel=1 epoch=1 pkgdesc='Free and Opensource Jabber library, written in C++ using cross-platform framework Qt. - development version' arch=('i686' 'x86_64') url='http://qutim.org/jreen' license=('GPL2') depends=('gsasl' 'qt4' 'speex') makedepends=('git' 'cmake') provides=('jreen') conflicts=('jreen') source=("${pkgname}::git://github.com/euroelessar/jreen.git") md5sums=('SKIP') if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then options=('debug') fi pkgver() { cd ${srcdir}/${pkgname} git describe --always --tags | sed 's|-|.|g' } build() { cd ${srcdir}/${pkgname} cmake -DJREEN_FORCE_QT4=on \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=${_buildtype} make } package() { cd ${srcdir}/${pkgname} make DESTDIR=${pkgdir} install }