# -*- 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 20250808 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  0c84bef10e934f1377cc1c020ec9b6232808edd9 \
                        sha256  d78e8066ba5377c3841c8b6dcc6949cccbc04f3e475a3ac34587721438cde494 \
                        size    748445

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/
}
