# -*- 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 20260101.0 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  8c7a4887c5a55686fcf2e6ddc819f55961658497 \
                        sha256  8ddba4ed9ae9d10928e169f8121c6791e0e3c2907fa27d6e0055fe434f6e700e \
                        size    973006

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