32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Template file for 'python3-mitmproxy_wireguard'
|
|
pkgname=python3-mitmproxy_wireguard
|
|
version=0.1.19
|
|
revision=1
|
|
build_style=python3-pep517
|
|
build_helper=rust
|
|
hostmakedepends="cargo maturin"
|
|
makedepends="python3-devel rust-std"
|
|
depends="python3"
|
|
short_desc="WireGuard frontend for mitmproxy"
|
|
maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/decathorpe/mitmproxy_wireguard"
|
|
changelog="https://raw.githubusercontent.com/decathorpe/mitmproxy_wireguard/main/CHANGELOG.md"
|
|
distfiles="https://github.com/decathorpe/mitmproxy_wireguard/archive/${version}.tar.gz"
|
|
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
|
|
mv mitmproxy_wireguard-${version}-*.whl dist/mitmproxy_wireguard-${version}-py3-none-any.whl
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|