# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=btrbk pkgver=0.22.2 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="8f37153db52df49be118493bdf4f127e btrbk-0.22.2.tar.xz" sha256sums="6869124b16c3c907f8ef7896f1c6997976bf8c96fd5d71fce1940b731b886fbd btrbk-0.22.2.tar.xz" sha512sums="07084eef3670e8026408f0bcb48d40d3c5e72079c7e2921d5fe786bf25e0fc961c17ef25e0af0c20372dbf29fd6ec0ce731932abf2661dee71bad60de5e82a45 btrbk-0.22.2.tar.xz"