borg: fix template

- really use system lz4 on cross targets (starting with 1.1.4 the env
  var has been renamed to BORG_LIBLZ4_PREFIX)
- build against system zstd
- use pre-built man pages
This commit is contained in:
Alessio Sergi 2018-05-10 19:15:55 +02:00
parent bcf69d3a19
commit e1c3da77d9
1 changed files with 12 additions and 12 deletions

View File

@ -1,33 +1,33 @@
# Template file for 'borg'
pkgname=borg
version=1.1.5
revision=4
revision=5
wrksrc="borgbackup-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-devel libressl-devel python3-Sphinx"
makedepends="${hostmakedepends/python3-setuptools/} acl-devel liblz4-devel"
hostmakedepends="python3-setuptools python3-devel libressl-devel"
makedepends="${hostmakedepends/python3-setuptools/} acl-devel liblz4-devel libzstd-devel"
depends="python3-llfuse python3-msgpack python3-setuptools"
pycompile_module="borg"
short_desc="Deduplicating backup program with compression and encryption"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="3-clause-BSD"
license="BSD-3-Clause"
homepage="https://borgbackup.github.io/"
_changelog="https://borgbackup.readthedocs.io/en/stable/changes.html#changelog"
distfiles="${PYPI_SITE}/b/borgbackup/borgbackup-${version}.tar.gz"
checksum=4356e6c712871f389e3cb1d6382e341ea635f9e5c65de1cd8fcd103d0fb66d3d
export BORG_LZ4_PREFIX="${XBPS_CROSS_BASE}/usr"
export BORG_OPENSSL_PREFIX="${XBPS_CROSS_BASE}/usr"
export BORG_LIBLZ4_PREFIX="${XBPS_CROSS_BASE}/usr"
export BORG_LIBZSTD_PREFIX="${XBPS_CROSS_BASE}/usr"
pre_build() {
sed -i '/guzzle/d' docs/conf.py
sed -i setup.py \
-e '/setup_requires=/d' \
-e '/use_scm_version=/,+2d' \
-e "/name=/ a\
version='${version}',"
# python-msgpack had a name transition from python-msgpack to msgpack
# adapt.
sed -i 's/msgpack-python/msgpack/g' setup.py
sed -i 's/,<0\.5\.0//' setup.py src/borgbackup.egg-info/requires.txt
}
post_build() {
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3
sed -i "s/msgpack-python>=.*/msgpack',/g" setup.py
}
post_install() {
vlicense LICENSE