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')
25 conflicts=('jreen-git')
27 source=(https://github.com/downloads/zizzfizzix/pkgbuilds/${pkgname}-${pkgver}.tar.bz2)
28 md5sums=(26ba6636879e82b452bf8e0f3fa2f397)
30 # Clean options array to strip pkg if release buildtype is chosen
31 if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
36 msg "Starting build..."
38 if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
39 mkdir ${srcdir}/${pkgname}-${pkgver}-build
40 cd ${srcdir}/${pkgname}-${pkgver}-build
42 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype} ../${pkgname}-${pkgver}
47 cd ${srcdir}/${pkgname}-${pkgver}-build
48 make DESTDIR=${pkgdir} install