aboutsummaryrefslogtreecommitdiffstats
path: root/testing/btrbk/APKBUILD
blob: d690eb25a3a44ac951e8c4e1271b84423df3151f (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=btrbk
pkgver=0.23.1
pkgrel=0
pkgdesc="Backup tool for btrfs subvolumes with atomic snapshots & incremental transfers"
url="http://digint.ch/btrbk/"
arch="noarch"
license="GPL3"
depends="perl perl-date-calc btrfs-progs"
depends_dev=""
makedepends="$depends_dev"
subpackages="$pkgname-doc"
source="http://digint.ch/download/$pkgname/releases/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$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"
	return 0
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib || return 1 # systemd scripts
}

md5sums="603145963002c08da36957b1e4b38e41  btrbk-0.23.1.tar.xz"
sha256sums="f82a523b5900f1c088ffa17327e7c15b753ee1c2552a00fac3abb2fcc6469279  btrbk-0.23.1.tar.xz"
sha512sums="48cc57c1b2f638771eb8b8a569c3f0f3721a8d24b5f317f029764c1f5f8cf355b6baa790bb4b1e28f8fe3a77a7db88389ec63393d872ea54cc74a53e813b80a5  btrbk-0.23.1.tar.xz"