summaryrefslogtreecommitdiffstats
path: root/main/librsync/APKBUILD
blob: 776a091d9d3d14da61d101c5c89cd29e6ba12f74 (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
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=librsync
pkgver=1.0.0
pkgrel=0
pkgdesc="librsync implements the rolling-checksum algorithm of rsync"
url="https://github.com/librsync/librsync"
arch="all"
license="LGPL 2.1"
depends=""
makedepends="autoconf automake libtool popt-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/librsync/librsync/archive/v$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	./autogen.sh
}

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="829fad850e470dab9cc38a955746aa72  librsync-1.0.0.tar.gz"
sha256sums="2195998516960ce84d93f88ee3bfd92f430a16cdba4b5d34560a39fa13fcafd9  librsync-1.0.0.tar.gz"
sha512sums="8812671ff5d8cb841b188902cb8da117655d2252c2fb8c8b4a445ce535500bda7e43ea82d0a687f30544e922693c268effb08af2856f1b1210d0228daf273bf1  librsync-1.0.0.tar.gz"