# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/txthinking/brook 20270101 v
revision            0

categories          net
maintainers         {judaew @judaew} openmaintainer
license             GPL-3

description         A cross-platform proxy/vpn software
long_description    \
    Brook is a cross-platform strong encryption and not detectable proxy. \
    Brook's goal is to keep it simple, stupid and not detectable.
homepage            https://www.txthinking.com

checksums           ${distname}${extract.suffix} \
                        rmd160  86df5f4e20919e75bacbc9e01a95b16c3d72636a \
                        sha256  43d8e5476918daa2d35fc63e8b0c94c0c1df8577f1d09103a3ab0f6141f29c0f \
                        size    970995

build.args          ./cli/brook

# FIXME: This port currently can't be built without allowing go mod to fetch
go.offline_build no

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
