# Template file for 'duplicity'
pkgname=duplicity
version=3.0.3.1
revision=2
build_style=python3-module
hostmakedepends="gettext python3-setuptools_scm"
makedepends="python3-devel librsync-devel"
depends="python3-fasteners gnupg python3-future python3-urllib3"
checkdepends="$depends python3-pytest python3-mock python3-pexpect
 tar par2cmdline"
short_desc="Encrypted bandwidth-efficient backup using the rsync algorithm"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://duplicity.gitlab.io"
changelog="https://gitlab.com/duplicity/duplicity/-/raw/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/d/duplicity/duplicity-${version}.tar.gz"
checksum=33b5e5f28384ee51dd750f926273903604606bfc08a0c4a5c738064dc5c99c2e
# most of the dependencies are for optional backends, some aren't packaged by Void
noverifypydeps=yes

duplicity-doc_package() {
	short_desc+=" - documentation"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/share/doc
	}
}
