From fe51063790843478fd7f3ec6e279a298d4289e7a Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 21 May 2016 22:40:28 +0200 Subject: [PATCH] New package: borg-1.0.3 --- srcpkgs/borg/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/borg/template diff --git a/srcpkgs/borg/template b/srcpkgs/borg/template new file mode 100644 index 0000000000..4caf9c7104 --- /dev/null +++ b/srcpkgs/borg/template @@ -0,0 +1,32 @@ +# Template file for 'borg' +pkgname=borg +version=1.0.3 +revision=1 +wrksrc="borgbackup-$version" +build_style=python-module +hostmakedepends="python3.4-setuptools python3.4-devel libressl-devel + python3.4-Sphinx python3.4-sphinx_rtd_theme" +makedepends="${hostmakedepends/python3.4-setuptools/} acl-devel lz4-devel" +depends="python3.4-msgpack python3.4-llfuse" +python_versions="3.4" +pycompile_version="3.4" +pycompile_module="borg" +short_desc="Deduplicating backup program with compression and encryption" +maintainer="Christian Neukirchen " +license="BSD" +homepage="https://borgbackup.github.io/" +distfiles="${PYPI_SITE}/b/borgbackup/borgbackup-${version}.tar.gz" +checksum=7a79c53f2fd3f8a687bb10dbec4591ce95878f89f4467544ef4e7a005407f94f + +pre_build() { + if [ "$CROSS_BUILD" ]; then + sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py + fi +} +post_build() { + PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3.4 +} +post_install() { + vlicense LICENSE + vman docs/_build/man/borg.1 +}