void-packages/srcpkgs/attic/template
2020-10-10 10:21:36 -04:00

35 lines
995 B
Bash

# Template file for 'attic'
pkgname=attic
version=0.16
revision=19
wrksrc="Attic-$version"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython python3-Sphinx"
makedepends="python3-devel libressl-devel acl-devel"
depends="python3-msgpack python3-llfuse"
short_desc="Deduplicating backup program for efficient and secure backups"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://attic-backup.org/"
distfiles="${PYPI_SITE}/A/Attic/Attic-${version}.tar.gz"
checksum=6650cd28072101c2e05941e77b93a62f91da6179785e4e4b4880916c469bba2c
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
fi
local _file
for _file in attic/*.pyx; do
rm ${_file/pyx/c}
done
python3 setup.py sdist
}
post_build() {
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build
}
post_install() {
vlicense LICENSE
vman docs/_build/man/attic-deduplicatingarchiver.1 attic.1
}