28 lines
956 B
Bash
28 lines
956 B
Bash
# Template file for 'python3-mitmproxy_wireguard'
|
|
pkgname=python3-mitmproxy_wireguard
|
|
version=0.1.19
|
|
revision=2
|
|
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() {
|
|
# 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
|
|
}
|