diff --git a/srcpkgs/oniux/template b/srcpkgs/oniux/template new file mode 100644 index 00000000000..1cc66965f8c --- /dev/null +++ b/srcpkgs/oniux/template @@ -0,0 +1,26 @@ +# Template file for 'oniux' +pkgname=oniux +version=0.4.0 +revision=1 +archs="x86_64* i686* aarch64* arm*" # ring +build_style=cargo +build_helper="rust" +hostmakedepends="pkg-config" +makedepends="libzstd-devel sqlite-devel" +short_desc="Isolate an arbitrary application over the Tor network" +maintainer="Duncaen " +license="MIT OR Apache-2.0" +homepage="https://gitlab.torproject.org/tpo/core/oniux" +distfiles="https://gitlab.torproject.org/tpo/core/oniux/-/archive/v${version}/oniux-v${version}.tar.gz" +checksum=fbb1ca986d61d658a70c959242ce8d8a41437d2ec99e25d416311c1045ea72ff + +# aws-lc-sys only ships pre-generated files for certain architectures +case "${XBPS_TARGET_MACHINE}" in +armv[67]l*) + hostmakedepends+=" cmake rust-bindgen clang libzstd-devel sqlite-devel" + ;; +esac + +post_install() { + vlicense LICENSE-MIT +}