aboutsummaryrefslogtreecommitdiffstats
path: root/main/rsnapshot/APKBUILD
blob: f033026c6c5112ddc0e6bd57a8b5ad78ce94f52b (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
46
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rsnapshot
pkgver=1.4.0
pkgrel=0
pkgdesc="Local and remote filesystem snapshot utility"
url="http://www.rsnapshot.org/"
arch="noarch"
license="GPLv2+"
depends="perl rsync openssh-client"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.rsnapshot.org/downloads/rsnapshot-$pkgver.tar.gz
	"

_builddir="$srcdir"/rsnapshot-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="4011768eb6ec122a0f9479275ed64a27  rsnapshot-1.4.0.tar.gz"
sha256sums="222574fee2f59d0e3ef5da6e6dd0f445205fecfa7ca12ef821eb8a89cf4f2ca8  rsnapshot-1.4.0.tar.gz"
sha512sums="33f9a6e05bd8da994db7e9b223c420237ebe6165118703bf6ca4f6c5c2ea4675ac0985f8db9f1515cc41f22b58bb36cbba61343f6c8e0106f4c9bedfd7eb6dca  rsnapshot-1.4.0.tar.gz"