blob: e60aec60a0a0a3aec374ddb9581da54acb770daa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
##############################################################
#### 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.
# Default is RelWithDebInfo to help with debugging.
_buildtype="RelWithDebInfo"
##############################################################
pkgname=jreen-git
pkgver=20111112
pkgrel=1
pkgdesc="Qt XMPP library - development version"
arch=('i686' 'x86_64')
url="https://github.com/euroelessar/jreen"
license=('GPL2')
depends=('libidn' 'qca-ossl' 'zlib')
makedepends=('git' 'cmake>=2.6')
provides=('jreen')
conflicts=('jreen')
options=(!strip)
_gitroot="git://github.com/euroelessar/jreen.git"
_gitname="jreen"
build() {
cd ${srcdir}
msg "Connecting to GIT server..."
if [ -d ${_gitname} ]; then
cd ${_gitname} && git pull origin master
else
git clone --depth 1 ${_gitroot}
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
if [[ -e ${srcdir}/${_gitname}-build ]]; then rm -rf ${srcdir}/${_gitname}-build; fi
mkdir ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype} ../${_gitname}
make
}
package() {
cd ${srcdir}/${_gitname}-build
make DESTDIR=${pkgdir} install
}
|