2016-05-21 22:40:28 +02:00
|
|
|
# Template file for 'borg'
|
|
|
|
pkgname=borg
|
2017-12-30 22:08:17 +01:00
|
|
|
version=1.1.4
|
2018-01-12 16:19:18 +01:00
|
|
|
revision=4
|
2016-07-16 16:48:50 +02:00
|
|
|
wrksrc="borgbackup-${version}"
|
2016-10-16 17:44:10 +02:00
|
|
|
build_style=python3-module
|
2017-10-08 20:31:39 +02:00
|
|
|
hostmakedepends="python3-setuptools python3-devel libressl-devel python3-Sphinx"
|
2016-10-16 17:44:10 +02:00
|
|
|
makedepends="${hostmakedepends/python3-setuptools/} acl-devel lz4-devel"
|
|
|
|
depends="python3-llfuse python3-msgpack python3-setuptools"
|
2016-05-21 22:40:28 +02:00
|
|
|
pycompile_module="borg"
|
|
|
|
short_desc="Deduplicating backup program with compression and encryption"
|
2017-07-24 17:32:14 +02:00
|
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
2017-10-08 20:31:39 +02:00
|
|
|
license="3-clause-BSD"
|
2016-05-21 22:40:28 +02:00
|
|
|
homepage="https://borgbackup.github.io/"
|
2017-10-23 13:08:43 +02:00
|
|
|
_changelog="https://borgbackup.readthedocs.io/en/stable/changes.html#changelog"
|
2016-05-21 22:40:28 +02:00
|
|
|
distfiles="${PYPI_SITE}/b/borgbackup/borgbackup-${version}.tar.gz"
|
2017-12-30 22:08:17 +01:00
|
|
|
checksum=22a4a53840886180e87de5636356f29e491209365861007c31d7f18220c72cb2
|
2016-05-21 22:40:28 +02:00
|
|
|
|
2017-10-08 20:43:17 +02:00
|
|
|
export BORG_LZ4_PREFIX="${XBPS_CROSS_BASE}/usr"
|
|
|
|
export BORG_OPENSSL_PREFIX="${XBPS_CROSS_BASE}/usr"
|
|
|
|
|
2016-05-21 22:40:28 +02:00
|
|
|
pre_build() {
|
2017-10-08 20:31:39 +02:00
|
|
|
sed -i '/guzzle/d' docs/conf.py
|
2018-01-12 14:53:47 +01:00
|
|
|
# python-msgpack had a name transition from python-msgpack to msgpack
|
|
|
|
# adapt.
|
2018-01-12 16:19:18 +01:00
|
|
|
sed -i 's|msgpack-python|msgpack|g' setup.py
|
2016-05-21 22:40:28 +02:00
|
|
|
}
|
|
|
|
post_build() {
|
2016-10-16 17:44:10 +02:00
|
|
|
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3
|
2016-05-21 22:40:28 +02:00
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
2017-12-24 17:04:21 +01:00
|
|
|
|
|
|
|
for f in docs/man/*.1 ; do
|
|
|
|
vman $f
|
|
|
|
done
|
|
|
|
|
|
|
|
cd scripts/shell_completions
|
|
|
|
vinstall bash/${pkgname} 644 usr/share/bash-completion/completions ${pkgname}
|
|
|
|
vinstall fish/${pkgname}.fish 644 usr/share/fish/completions ${pkgname}.fish
|
|
|
|
vinstall zsh/_${pkgname} 644 usr/share/zsh/site-functions _${pkgname}
|
|
|
|
cd ../..
|
2016-05-21 22:40:28 +02:00
|
|
|
}
|