42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'borg'
|
|
pkgname=borg
|
|
version=1.1.14
|
|
revision=1
|
|
wrksrc="borgbackup-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-devel libressl-devel"
|
|
makedepends="${hostmakedepends/python3-setuptools/} acl-devel liblz4-devel libzstd-devel"
|
|
depends="python3-llfuse python3-setuptools"
|
|
short_desc="Deduplicating backup program with compression and encryption"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
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=7dbb0747cc948673f695cd6de284af215f810fed2eb2a615ef26ddc7c691edba
|
|
|
|
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() {
|
|
vsed -i setup.py \
|
|
-e '/setup_requires=/d' \
|
|
-e '/use_scm_version=/,+2d' \
|
|
-e "/name=/ a\
|
|
version='${version}',"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
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/vendor_completions.d
|
|
vinstall zsh/_${pkgname} 644 usr/share/zsh/site-functions _${pkgname}
|
|
}
|