updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / jreen / PKGBUILD
blob1fd8e1700ff35c89b3d3c673e0b16735129e77ed
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 ##############################################################
15 pkgname=jreen
16 pkgver=1.0.1
17 pkgrel=1
18 pkgdesc="Qt XMPP library"
19 arch=('i686' 'x86_64')
20 url="https://github.com/euroelessar/jreen"
21 license=('GPL2')
22 depends=('libidn' 'qca-ossl' 'zlib')
23 makedepends=('cmake')
24 provides=('jreen')
25 conflicts=('jreen-git')
26 options=(!strip)
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
32   options=()
35 build() {
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}
43   make
46 package() {
47   cd ${srcdir}/${pkgname}-${pkgver}-build
48   make DESTDIR=${pkgdir} install