# Maintainer: Barry Smith # Maintainer: John D Jones III AKA jnbek ############################################################## #### 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='Release' ############################################################## pkgname=jreen pkgver=1.3.0 pkgrel=1 pkgdesc='Free and Opensource Jabber library, written in C++ using cross-platform framework Qt.' arch=('i686' 'x86_64') url='http://qutim.org/jreen' license=('GPL2') depends=('gsasl' 'speex' 'qt4') makedepends=('cmake') provides=('jreen') conflicts=('jreen-git') source=("${pkgname}-${pkgver}.zip::https://github.com/euroelessar/${pkgname}/archive/v${pkgver}.tar.gz") md5sums=('344d1d0b9b76ce64744c6d915ed125fa') if [[ ! ${_buildtype} == 'Release' ]] && [[ ! ${_buildtype} == 'release' ]]; then options=('debug') fi prepare() { if [[ -e ${pkgname}-${pkgver}-build ]]; then rm -rf ${pkgname}-${pkgver}-build; fi mkdir ${pkgname}-${pkgver}-build } build() { cd ${pkgname}-${pkgver}-build cmake -DJREEN_FORCE_QT4=yes \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_BUILD_TYPE=${_buildtype} \ ../${pkgname}-${pkgver} make } package() { cd ${pkgname}-${pkgver}-build make DESTDIR=${pkgdir} install }