# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=btrbk pkgver=0.22.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="2f9e10ea793d7b7dfe36a7c33cac129e btrbk-0.22.1.tar.xz" sha256sums="15786bbd7749d3b24622656f654d74202a84bdb4f32983bac5ac7c139e141a82 btrbk-0.22.1.tar.xz" sha512sums="67d4795708c1540861ad00445424e9959b1e5c9daab2408037e9e341b168e622be1fb45f3491407dade54677d7a3c6d87a9bc9db940e8d6dcb364623622e2a5f btrbk-0.22.1.tar.xz"