void-packages/srcpkgs/borg/template
Alessio Sergi 71420c04c6 borg: rebuild for Python 3.5
Switch to python3-module.
Switch to python3-* pkgs.
2016-10-16 17:58:09 +02:00

31 lines
1.1 KiB
Bash

# Template file for 'borg'
pkgname=borg
version=1.0.7
revision=3
wrksrc="borgbackup-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-devel libressl-devel
python3-Sphinx python3-sphinx_rtd_theme"
makedepends="${hostmakedepends/python3-setuptools/} acl-devel lz4-devel"
depends="python3-llfuse python3-msgpack python3-setuptools"
pycompile_module="borg"
short_desc="Deduplicating backup program with compression and encryption"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="https://borgbackup.github.io/"
distfiles="${PYPI_SITE}/b/borgbackup/borgbackup-${version}.tar.gz"
checksum=203353a299b6ea0c092a1f23b6bb5414a0b795712c213c68f7a1f4c24be131d1
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
sed -i "s|\(possible_lz4_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
fi
}
post_build() {
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3
}
post_install() {
vlicense LICENSE
vman docs/_build/man/borg.1
}