borg: fix cross.
This commit is contained in:
parent
1897a8c225
commit
59a009fba4
@ -1,7 +1,7 @@
|
||||
# Template file for 'borg'
|
||||
pkgname=borg
|
||||
version=1.1.0
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="borgbackup-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-devel libressl-devel python3-Sphinx"
|
||||
@ -15,12 +15,11 @@ homepage="https://borgbackup.github.io/"
|
||||
distfiles="${PYPI_SITE}/b/borgbackup/borgbackup-${version}.tar.gz"
|
||||
checksum=b40c1120c480a8235ce403b8e6e7abf1377458896f438eafce60f54916789e6f
|
||||
|
||||
export BORG_LZ4_PREFIX="${XBPS_CROSS_BASE}/usr"
|
||||
export BORG_OPENSSL_PREFIX="${XBPS_CROSS_BASE}/usr"
|
||||
|
||||
pre_build() {
|
||||
sed -i '/guzzle/d' docs/conf.py
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
sed -i "s|\(possible_openssl_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
|
||||
sed -i "s|\(possible_lz4_prefixes\) =.*|\1 = ['${XBPS_CROSS_BASE}/usr']|" setup.py
|
||||
fi
|
||||
}
|
||||
post_build() {
|
||||
PYTHONPATH=.. make -C docs man SPHINXBUILD=sphinx-build3
|
||||
|
Loading…
Reference in New Issue
Block a user