void-packages/srcpkgs/wireproxy/template

28 lines
809 B
Bash

# Template file for 'wireproxy'
pkgname=wireproxy
version=1.0.5
revision=4
build_style=go
go_import_path="github.com/octeep/wireproxy"
go_package="${go_import_path}/cmd/wireproxy"
go_ldflags="-X 'main.version=${version}'"
hostmakedepends="go1.20"
short_desc="Wireguard client that exposes itself as a socks5 proxy"
maintainer="Wind Wong <octeep@pm.me>"
license="ISC"
homepage="https://github.com/octeep/wireproxy"
distfiles="https://github.com/octeep/wireproxy/archive/v${version}.tar.gz"
checksum=3779a157713b462a7b5322f1437f768ab69ae446df0ceca76c6dff7c4030e425
make_dirs="
/etc/wireproxy 0750 root _wireproxy
/var/lib/wireproxy 0700 _wireproxy _wireproxy"
system_accounts="_wireproxy"
_wireproxy_homedir="/var/lib/wireproxy"
export GOTOOLCHAIN=go1.20
post_install() {
vsv wireproxy
vlicense LICENSE
}