summaryrefslogtreecommitdiffstats
path: root/testing/csync2/APKBUILD
blob: 6c4096a632c160b8646d63a1947ecff6ea52a0a7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=csync2
pkgver=1.34
pkgrel=0
pkgdesc="a cluster synchronization tool"
url="http://oss.linbit.com/csync2/"
license="GPL-2+"
depends=
makedepends="librsync-dev gnutls-dev sqlite-dev autoconf automake"
install=
subpackages="$pkgname-doc"
source="http://oss.linbit.com/csync2/csync2-$pkgver.tar.gz
	01-csync2-sqlite3.patch
	02-csync2-1.34-gnutls_pkgconfig.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {                                             
	cd "$_builddir"
	for i in ../*.patch; do  
        	msg "Applying $i" 
                patch -p1 -i $i || return 1 
	done
	autoreconf --install --force 
}
    
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="efc8a3548996b79cef2ad76af5e93cd8  csync2-1.34.tar.gz
35ba1bb1aafd87741c7ef55bdfb2e212  01-csync2-sqlite3.patch
31b2ed6a7bb424ccdbf1486223eca323  02-csync2-1.34-gnutls_pkgconfig.patch"