# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=fsarchiver
pkgver=0.8.7
pkgrel=1
pkgdesc="Safe and flexible file-system backup and deployment tool"
options="!check" # No testsuite
arch="all"
url="https://www.fsarchiver.org/"
license="GPL-2.0-or-later"
makedepends="linux-headers attr-dev bzip2-dev e2fsprogs-dev lz4-dev lzo-dev
	xz-dev libgcrypt-dev zlib-dev zstd-dev"
subpackages="$pkgname-doc"
source="https://github.com/fdupoux/fsarchiver/releases/download/$pkgver/fsarchiver-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6f7099c9f961f78fc23e6cee57dfb109f0e2e00a707875175e37786ba0abb7a2e6330662f57a4122215c80dff63b8dc1b270690c0f8cc3bedbca83ab857c19b2  fsarchiver-0.8.7.tar.gz
"
