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
# Maintainer : Francois Boulogne <fboulogne at april dot org>
# Contributor : Igor Galic <[email protected]>

pkgname=csync2
pkgver=1.34
pkgrel=3
arch=(i686 x86_64)
pkgdesc="Asynchronous cluster syncronisation tool based on librsync and inspired by Unison"
url="http://oss.linbit.com/csync2/"
license="GPL"
depends=(librsync sqlite2 libgcrypt libgpg-error gnutls libtasn1)
source=(http://oss.linbit.com/csync2/$pkgname-$pkgver.tar.gz)
backup=(etc/csync2.cfg)
md5sums=('efc8a3548996b79cef2ad76af5e93cd8')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -e 's/\-1.7//g' -i ./autogen.sh 
  #AM_PATH_LIBGNUTLS does not exist any more
  sed -ie 's/.*AM_PATH_LIBGNUTLS.*/PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.2.0], have_gnutls=yes, have_gnutls=no)/g' configure.ac
  ./autogen.sh 
  ./configure --prefix=/usr 
  make 
  make DESTDIR="$pkgdir" install
  find "$pkgdir" -name '*.la' -exec rm {} \;
}