updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / libsyncml / PKGBUILD
blob436c435600aae05cd3d720343ae82386994d90e4
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Hauke Wesselmann <hauke@h-dawg.de>
3 # Contributor: Giorgio Lando <patroclo7@gmail.com>
5 pkgname=libsyncml
6 pkgver=0.5.4
7 pkgrel=1
8 pkgdesc="An implementation of the syncml protocol."
9 arch=('i686' 'x86_64')
10 url="http://libsyncml.opensync.org/"
11 license=('LGPL')
12 depends=('gnutls' 'libsoup' 'libwbxml' 'openobex')
13 makedepends=('cmake')
14 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
16 md5sums=('b8ce1f222cccc12acdcd6807d65c1aea')
18 build() {
19   cd ${srcdir}
21 #building in source directory not allowed
22   if [ -d ${srcdir}/build ]; then
23     (cd build)
24   else
25     mkdir ${srcdir}/build && cd ${srcdir}/build
26   fi
28   cmake ../$pkgname-$pkgver -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
29   make || return 1
30   make DESTDIR=${pkgdir} install || return 1