# Template file for 'bup'
pkgname=bup
version=0.33.7
revision=2
build_style=configure
hostmakedepends="pkg-config python3 perl git pandoc"
makedepends="python3-devel readline-devel acl-devel"
depends="python3-pyxattr python3-fuse par2cmdline"
 checkdepends="python3-pytest tar rsync mdocml"
short_desc="Backup system based on the git packfile format"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.0-only"
homepage="https://github.com/bup/bup"
distfiles="https://github.com/bup/bup/archive/${version}.tar.gz"
checksum=03bf3c02ee6912d9f2e017e488625948818efc8538bbc6a7d6a993fbdee709a4
python_version=3
nocross=yes

pre_configure() {
	vsed -e 's#^PREFIX=.*#PREFIX=/usr#' -i GNUmakefile
}

do_check() {
	./pytest -x --ignore-glob='test/ext/test-ls*'
}
