summaryrefslogtreecommitdiff
path: root/community/libopensync/PKGBUILD
blob: 67e9d6bfbc43452d8a0f89a7e973b02e2aaeda8c (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
# $Id: PKGBUILD 112239 2014-05-30 12:34:58Z spupykin $
# Maintainer: Sergej Pupykin
# Contributor: Hauke Wesselmann <hauke@h-dawg.de>
# Contributor: Laurie Clark-Michalek <bluepeppers@archlinux.us>

pkgname=libopensync
pkgver=0.39
pkgrel=5
pkgdesc='Stable version of the opensync synchronisation framework'
url='http://www.opensync.org'
license=('LGPL')
arch=('i686' 'x86_64')
makedepends=('python2' 'cmake' 'chrpath')
depends=('glib2' 'libxml2' 'sqlite' 'libxslt')
source=(http://www.opensync.org/download/releases/$pkgver/$pkgname-$pkgver.tar.bz2)
md5sums=('733211e82b61e2aa575d149dda17d475')

prepare() {
  cd $srcdir/$pkgname-$pkgver
  #disable treating of warnings as errors
  find /$(pwd) -type f -exec sed -i 's/-Werror//g' '{}' \;
  sed -i 's|glib/gmem.h|glib.h|' opensync/common/opensync_list.c
}

build() {
  cd $srcdir/$pkgname-$pkgver
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr $srcdir/$pkgname-$pkgver
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver/build
  make DESTDIR=$pkgdir install
  find $pkgdir -name \*.so  -type f -exec chrpath -d {} \;
  find $pkgdir -perm /ugo+x -type f -exec chrpath -d {} \;
}