diff --git a/srcpkgs/python3-mitmproxy-rs/template b/srcpkgs/python3-mitmproxy-rs/template new file mode 100644 index 00000000000000..c38495bd545400 --- /dev/null +++ b/srcpkgs/python3-mitmproxy-rs/template @@ -0,0 +1,20 @@ +# Template file for 'python3-mitmproxy-rs' +pkgname=python3-mitmproxy-rs +version=0.11.1 +revision=1 +build_style=python3-pep517 +build_helper="rust" +hostmakedepends="maturin cargo" +makedepends="rust-std" +short_desc="Rust bits in mitmproxy" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/mitmproxy/mitmproxy_rs" +changelog="https://github.com/mitmproxy/mitmproxy_rs/raw/main/CHANGELOG.md" +distfiles="${PYPI_SITE}/m/mitmproxy_rs/mitmproxy_rs-${version}.tar.gz" +checksum=a77c022bc0563f9d56fa0809a27013ed2fb5d3145c599098cb1175e7326e7829 +replaces="python3-mitmproxy_wireguard>=0" + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-mitmproxy_wireguard/template b/srcpkgs/python3-mitmproxy_wireguard/template deleted file mode 100644 index 0e9ce93191b0e8..00000000000000 --- a/srcpkgs/python3-mitmproxy_wireguard/template +++ /dev/null @@ -1,27 +0,0 @@ -# Template file for 'python3-mitmproxy_wireguard' -pkgname=python3-mitmproxy_wireguard -version=0.1.19 -revision=3 -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 " -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 -}