# -*- 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 10.2.3 v
go.package          github.com/schollz/croc/v10
go.offline_build    no
revision            0
epoch               1

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  5b97bb067d0ac5266c185911c1328020c58c0992 \
                    sha256  96c17b9fa6c55c0a1e02937c5f2d34bd2ce5b7ef6f844f16eac8d155c1b8a119 \
                    size    585413

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