python3-mitmproxy_wireguard: inherit PYO3_CROSS variables from rust helper

This commit is contained in:
Gonzalo Tornaría 2023-09-16 11:56:49 -03:00 committed by Andrew J. Hesford
parent d97e0e71a5
commit 71136429a8

View file

@ -16,10 +16,6 @@ distfiles="https://github.com/decathorpe/mitmproxy_wireguard/archive/${version}.
checksum=749b5b45222b629f4cced154cc4bf70ba7ae3061db02e2ea0ae45a4ae6246463
do_build() {
if [ "$CROSS_BUILD" ]; then
export PYO3_CROSS_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib"
export PYO3_CROSS_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
fi
# Taken from ../python3-adblock/template
maturin build -o . --release --target "${RUST_TARGET}" --manylinux off
mkdir -p dist