# -*- 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/schollz/croc 9.6.13 v
go.package          github.com/schollz/croc/v9
github.tarball_from archive
revision            0

homepage            https://schollz.com/blog/croc6

description         \
    Easily and securely send things from one computer to another

long_description    \
    ${name} is a tool that allows any two computers to simply and securely \
    transfer files and folders. AFAIK, croc is the only CLI file-transfer \
    tool that: allows any two computers to transfer data (using a relay), \
    provides end-to-end encryption (using PAKE), enables easy cross-platform \
    transfers (Windows, Linux, Mac), allows multiple file transfers, allows \
    resuming transfers that are interrupted, does not need a local server or \
    port-forwarding, is faster than wormhole, rsync, scp through compression \
    and multiplexing (speedups 1.5x to 4x), and supports IPv6.

categories          net sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  9e7ea6cb8c621734b068798a4af4ccb32e17aef1 \
                    sha256  5362ae8433ebd4fda9efcd853b4b8959992cf5f531ef0958ea6ed969f2eafa7b \
                    size    512627

go.offline_build no

build.pre_args-append \
    -ldflags \" -s -w  \
        -X ${go.package}/src/cli.Version=${github.tag_prefix}${version} \
    \" -o ${name}

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