# -*- 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/claudiodangelis/qrcp 0.11.3
categories          sysutils net
maintainers         {cal @neverpanic} openmaintainer

license             MIT MPL-2 BSD LGPL-3 Apache-2
description         Transfer files over wifi from your computer to your mobile device by scanning a QR code without leaving the terminal.
long_description    {*}${description}
homepage            https://qrcp.sh/

checksums           ${distname}${extract.suffix} \
                        rmd160  04cbf7ea59ab04045f3f60cd9a3ba4e8a1b28be7 \
                        sha256  983dc23bc6e5d437965d49203a794f6e0ecb1e061a15c56c3b8576a41432fa59 \
                        size    13295679

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/ini.v1 \
                        lock    v1.67.0 \
                        rmd160  4aa285a6719b0bb909b12bb70cb08cdf66ffeff3 \
                        sha256  596cc2f7a771b35a1d308449ee2e3f96a79f834dd6d8d3c863c0fff321f70777 \
                        size    53538 \
                    gopkg.in/cheggaaa/pb.v1 \
                        lock    v1.0.28 \
                        rmd160  d344c349278a6ba83ab17a1854523493632762a3 \
                        sha256  2a6cdb7d2c7984ad3f1d06cee4bef99453fe09720a79024083270b312845cdb0 \
                        size    11796 \
                    gopkg.in/check.v1 \
                        lock    41f04d3bba15 \
                        rmd160  1e5543a8e6a3159296ee63e28cbde9931a04f6b3 \
                        sha256  c41575a73d10809f89b05ef9e783f2d53facdc6573697770d30efb05a9d2dc28 \
                        size    31612 \
                    golang.org/x/text \
                        lock    v0.14.0 \
                        rmd160  e26a72d542901d19f6dde4e07746f72206fb8701 \
                        sha256  ef54709caaafdd8b27ce3d5f7c53408f11bc5fd1688c1c4f328de8ed268b3188 \
                        size    8972503 \
                    golang.org/x/sys \
                        lock    v0.15.0 \
                        rmd160  84270c5ffe3cd1540ccf8b8f19120cbdb117f848 \
                        sha256  183f3870369e62e0ecaf378b5ef3d335e7fcebfd3ebfb81a0576b424a941476f \
                        size    1443915 \
                    golang.org/x/exp \
                        lock    921286631fa9 \
                        rmd160  4414b620e7dd0d4e95ec541192afa11081f8746d \
                        sha256  a4e2ce5a0ff86e2141f5e23aeed5c21dc1821301156b88992efc11fc40d18c02 \
                        size    1634450 \
                    go.uber.org/multierr \
                        repo    github.com/uber-go/multierr \
                        lock    v1.9.0 \
                        rmd160  a62e8085169740d9dcb002f9a360466b90a90afb \
                        sha256  7bebee5c3b9c61eb805071deeb0857d992f177f8450083d42785aa51b9ab8b11 \
                        size    15674 \
                    go.uber.org/atomic \
                        repo    github.com/uber-go/atomic \
                        lock    v1.9.0 \
                        rmd160  7705959c7053aa8e405560f5ffef3fbca414ee69 \
                        sha256  8baccde94a6ecaea185ef40b9bdecbd3dd8d8df7cbc50c89856b58c5cd897e40 \
                        size    21353 \
                    github.com/subosito/gotenv \
                        lock    v1.6.0 \
                        rmd160  d99c048eeaed43103fbf28a86902dc5a2311f980 \
                        sha256  b5890171316a97614d5a45363350e9c575dfc61ec8249742e68ae97ca21a444c \
                        size    11487 \
                    github.com/stretchr/testify \
                        lock    v1.8.4 \
                        rmd160  8e1645055c9b1d8e117df7974034e74b7f600d27 \
                        sha256  6d0a77075bbe0f8f1c0cbed51dd4d174579db976fef39d9ae6b500aab8917d6a \
                        size    104469 \
                    github.com/spf13/viper \
                        lock    v1.18.2 \
                        rmd160  8837f225975918742dd7f67abd3ece9919d4814e \
                        sha256  49fcf5245d42b70b2d9651a325bc0580bd2f344ad5c52a0c262843a1bc1cd26a \
                        size    118513 \
                    github.com/spf13/pflag \
                        lock    v1.0.5 \
                        rmd160  2ce81608a38c6f383a35bccd24d64361df5828c9 \
                        sha256  7f41acdcba65b1fab5b9b633947a139f9915b60f94bdab486cdbe9d90c54f61e \
                        size    50815 \
                    github.com/spf13/cobra \
                        lock    v1.8.0 \
                        rmd160  d506ddb57519970c8227ded6411adb8153fc8278 \
                        sha256  f35c4dd06645b4bca315c7d7f9a245f9d8851bb5fd43331fcb2aadbd585149e9 \
                        size    189731 \
                    github.com/spf13/cast \
                        lock    v1.6.0 \
                        rmd160  c7d5bf6b598bcc91b9d56ada428f3bf8ef33e9c4 \
                        sha256  cd5a5e7af2e781c1fe837d31d0abad184a2858d40c702df8ba5955d86959e047 \
                        size    15629 \
                    github.com/spf13/afero \
                        lock    v1.11.0 \
                        rmd160  a986da1741dfe513ea0a0edaed3b2961e7a06069 \
                        sha256  f8c35597e31410563e80730100f8bb615e359ad931a9214787feefa4085d48b6 \
                        size    89254 \
                    github.com/sourcegraph/conc \
                        lock    v0.3.0 \
                        rmd160  79458f4b5d9aca51fc58e3b3d31b54971169040b \
                        sha256  a35f688a3ff3dc8c86889947febcedf7af0517cd910d1057cba5a0a5c2386451 \
                        size    23025 \
                    github.com/skip2/go-qrcode \
                        lock    9434209cb086 \
                        rmd160  30a042f8d9e6d8a3d4f44bfb8107d53dd440a9be \
                        sha256  14df66c360abe69e729592ce94654a86492595adcfaf485f655aaa9ada90222d \
                        size    36086 \
                    github.com/sagikazarmark/slog-shim \
                        lock    v0.1.0 \
                        rmd160  b83db4c4f465c978a6239aeee1afe2d8ecf97353 \
                        sha256  53509e3267df1338fad356fa43949af957d12ba2267ec1410f498569a1866cd8 \
                        size    10882 \
                    github.com/sagikazarmark/locafero \
                        lock    v0.4.0 \
                        rmd160  61bc7c899fa9b193d92e2dade0894e25cd1c1d41 \
                        sha256  7056ea0cdb195b98b9f26d4f6aba77c73a6f7882a4f1e40c3926460a605814cb \
                        size    9698 \
                    github.com/rogpeppe/go-internal \
                        lock    v1.9.0 \
                        rmd160  acb8f644e5634bdae632cdb61ea736422aeb88f0 \
                        sha256  65b0852e5c78fa920fef2176fa17180bf1f7f32a1163baacb44c2aa480845a16 \
                        size    133682 \
                    github.com/pmezard/go-difflib \
                        lock    5d4384ee4fb2 \
                        rmd160  18b381fb63f46047dcc373a07a40e026b1ce1732 \
                        sha256  64935467335b4dff1a510bc726473b9f97124ca6be3fe74c9c2382b0ff6675aa \
                        size    11401 \
                    github.com/pelletier/go-toml \
                        lock    v2.1.0 \
                        rmd160  8333f1e37c354b98998a2793c1dd290482838c9e \
                        sha256  cd68736aa89935e4c00384e1c04a3dc0a2f548fa91dd0921a4137be46c090b03 \
                        size    899447 \
                    github.com/mitchellh/mapstructure \
                        lock    v1.5.0 \
                        rmd160  c838fb22a642081963c8e6f236cdd4c6000bfaf4 \
                        sha256  bd695f63e58f35f07aac6883ac5dc53d44db6cf24caa53efaadcf0842d03d762 \
                        size    30135 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.9 \
                        rmd160  412c0e508e55f4fe437be0f71d7d22eca2b4366f \
                        sha256  4f0f4a22257ccecfb6beae88052d850380ecc0e806d6bcc92d3656ebcac3b638 \
                        size    16716 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.17 \
                        rmd160  8a79d7ac1ac5311cb4892f75b7a439fd07cccc17 \
                        sha256  e75610c71dfca6ab7f671d1372f7b603b98338b7cbf1098d5a418d5a6760fb52 \
                        size    4700 \
                    github.com/mattn/go-colorable \
                        lock    v0.1.13 \
                        rmd160  c9e8ab9d0773c0984f36235e3c9f8c033552ac1a \
                        sha256  0cd9a951799c1a9f999df56e4b020170fa887456049c274aae6262d9ae3f7424 \
                        size    9778 \
                    github.com/manifoldco/promptui \
                        lock    v0.9.0 \
                        rmd160  0557a766a57005f08f096935e894bfb34a7b0e03 \
                        sha256  bb66c3deb1709d13f67a00ec2421185792f7a1efc5836e7a1607639a46ce1178 \
                        size    25927 \
                    github.com/magiconair/properties \
                        lock    v1.8.7 \
                        rmd160  df6e5639d11fcd7db0638153e247235b1cf17eb8 \
                        sha256  494b9c870a97ffc3b9377280412ab0c5afff549d109b28d484b02ced07713656 \
                        size    31419 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/kr/pretty \
                        lock    v0.3.1 \
                        rmd160  8c08579b4c56cdc958794e77afe3413e80aa67c3 \
                        sha256  7fcea475d6280976cf4a838e75d2b3a4105827316e588a80e49e8063d950c999 \
                        size    10232 \
                    github.com/jhoonb/archivex \
                        lock    0488e4ce1681 \
                        rmd160  f3f52a7b98d1623eb37c90e9137e27c3c7c8c461 \
                        sha256  cde011a4d4ff9312645893d8a0a49f3e0ff3fdea8a33fba6056afb3e23087a8d \
                        size    5178 \
                    github.com/inconshreveable/mousetrap \
                        lock    v1.1.0 \
                        rmd160  88f9577df93ac0f8801d8960adc7f28e38867f3e \
                        sha256  f69af10ff08c0e87f92dac3ee5172d8ed02463725b74edfc8943ef018a1a632d \
                        size    5343 \
                    github.com/hashicorp/hcl \
                        lock    v1.0.0 \
                        rmd160  ad8d0b523bb708fd6ae77df8bb414c103a75aa92 \
                        sha256  4fc0e87ac9d3d6cd042f044df2db2703bed569051fb8c179d505edeb4433e96e \
                        size    70636 \
                    github.com/google/go-cmp \
                        lock    v0.5.9 \
                        rmd160  9832ae80123461baed8aa20e830199c0e21e337b \
                        sha256  3058d20d61f03aa05fca0fc07acb8c50850c68086998c542857aec7ad1529482 \
                        size    104431 \
                    github.com/GlenDC/go-external-ip \
                        lock    v0.1.0 \
                        rmd160  e2da7f2b6e9bbb8c7e02bf1de18fdf98779b52e6 \
                        sha256  12fc539e893f62e9fa45ac02d89fd09285499bd754686417e4146c1a1e95b979 \
                        size    6995 \
                    github.com/fsnotify/fsnotify \
                        lock    v1.7.0 \
                        rmd160  9198dec094f5008a8b24a2e51542ce4ec3453162 \
                        sha256  d7cd46fbc8e25bfd37edb1b86851dcccc18c5180f09e533c6a35e4dcf2693d22 \
                        size    57508 \
                    github.com/frankban/quicktest \
                        lock    v1.14.6 \
                        rmd160  d517a6cb2f6acc7f969c9ed49f464014a717bf98 \
                        sha256  0142a3dd40b949b4d7e86768020e5f3c08fe026447458fd975b1b4c1f18b0745 \
                        size    40112 \
                    github.com/fatih/color \
                        lock    v1.14.1 \
                        rmd160  84b28475fc7b807de85c16c1d0a44221b4752482 \
                        sha256  b386d1a4f60d24494ab4f01dbde6fb33700bda87ae54b2c2a5f9a26b0d3b29f3 \
                        size    11020 \
                    github.com/eiannone/keyboard \
                        lock    caf4b762e807 \
                        rmd160  3bc7409fda500b63dee7372dc9f49e7f03ee33d9 \
                        sha256  79087c296ad6a4c8dc60e862a19d094ef63ff89e432497dd6012b23023a54be3 \
                        size    8564 \
                    github.com/davecgh/go-spew \
                        lock    d8f796af33cc \
                        rmd160  412da847dd485c586e0557e0e511bbdab6c7e929 \
                        sha256  989c527fb1568e2bfd9d4bec811d67ababa346d20fa2ffcc0760fad258241c26 \
                        size    42174 \
                    github.com/chzyer/test \
                        lock    a1ea475d72b1 \
                        rmd160  61f83d79b356cde63a27df0f2832ef92fcbc216d \
                        sha256  98d0c7d1dec438459e31886d65190bb45f70c4ed73e35f5ab2f3b8de582ea309 \
                        size    4007 \
                    github.com/chzyer/readline \
                        lock    2972be24d48e \
                        rmd160  933f32b684d0af4b8970d964d610918a9f181df6 \
                        sha256  f5771c6a3d97166a9536f8a45e85e1c40aed9b02089e395d2f4131681cbf692f \
                        size    36826 \
                    github.com/chzyer/logex \
                        lock    v1.1.10 \
                        rmd160  105d839f798ba0c3e27b3db4e790d9d21a928029 \
                        sha256  947e61095044d310b0ad92f10ac77c36eaa3c3e2e6181e87428ad10c20930ba3 \
                        size    4351 \
                    github.com/asaskevich/govalidator \
                        lock    475eaeb16496 \
                        rmd160  c9563aa50a3bbf323b07a610062a8dd46dede1e2 \
                        sha256  b5b2683d6b0bb1e516dcba00393f10c198496309575d299a4a996a61207e839d \
                        size    57033 \
                    github.com/adrg/xdg \
                        lock    v0.4.0 \
                        rmd160  9a5eabbef937e0482168febd9fc3fc63ad61d6fd \
                        sha256  1a1276ed8071b21d00f417eff83dc3a77d4a7878e3064f117bc22421902e0cfe \
                        size    20032

set go_ldflags      "-s -w -X github.com/claudiodangelis/qrcp/version.version=${version}"
build.args          -ldflags \"${go_ldflags}\"

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

    set bash_completion ${prefix}/share/bash-completion/completions
    xinstall -d ${destroot}${bash_completion}
    exec ${destroot}${prefix}/bin/${name} completion bash >> \
        ${destroot}${bash_completion}/${name}

    set zsh_completion ${prefix}/share/zsh/site-functions
    xinstall -d ${destroot}${zsh_completion}
    exec ${destroot}${prefix}/bin/${name} completion zsh >> \
        ${destroot}${zsh_completion}/_${name}

    set fish_completion ${prefix}/share/fish/vendor_completions.d
    xinstall -d ${destroot}${fish_completion}
    exec ${destroot}${prefix}/bin/${name} completion fish >> \
        ${destroot}${fish_completion}/${name}.fish
}