# -*- 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/99designs/aws-vault 7.2.0 v
go.package          github.com/99designs/aws-vault/v7
github.tarball_from archive
revision            0

description         \
    A vault for securely storing and accessing AWS credentials in \
    development environments.

long_description    \
    AWS Vault is a tool to securely store and access AWS credentials in a \
    development environment.  AWS Vault stores IAM credentials in your \
    operating system's secure keystore and then generates temporary \
    credentials from those to expose to your shell and applications. It's \
    designed to be complementary to the AWS CLI tools, and is aware of your \
    profiles and configuration in ~/.aws/config.

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

build.cmd           make
build.pre_args      VERSION=${version}
build.args          aws-vault-darwin-${goarch}

use_xcode           yes

post-extract {
    file mkdir ${gopath}/src/github.com/keybase
    ln -s   ${gopath}/src/github.com/99designs/go-keychain \
            ${gopath}/src/github.com/keybase/go-keychain
}

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/aws-vault-darwin-${goarch} \
        ${destroot}${prefix}/bin/${name}

    # Bash completions
    xinstall -d ${destroot}${prefix}/share/bash-completion/completions
    copy ${worksrcpath}/contrib/completions/bash/${name}.bash \
         ${destroot}${prefix}/share/bash-completion/completions/${name}

    # Zsh completions
    xinstall -d ${destroot}${prefix}/share/zsh/site-functions
    copy ${worksrcpath}/contrib/completions/zsh/${name}.zsh \
        ${destroot}${prefix}/share/zsh/site-functions/_${name}

    # Fish completions
    xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d
    copy ${worksrcpath}/contrib/completions/fish/${name}.fish \
        ${destroot}${prefix}/share/fish/vendor_completions.d/${name}.fish
}

github.livecheck.regex \
                    {([0-9.]+)}

checksums           ${distname}${extract.suffix} \
                        rmd160  30ad09821d83bbe3010edfeffd98552e518f5604 \
                        sha256  3f2f1d0ec06eb0873f9b96b59dc70f9fcc832dc97b927af3dbab6cdc87477b0e \
                        size    63697

go.vendors          gopkg.in/yaml.v3 \
                        lock    496545a6307b \
                        rmd160  16a43936d8ae6243895e23465132977d3a1193c2 \
                        sha256  333e78b3b9cb73b3572d62f692d32426a8554b86c93025ea032f779395869e84 \
                        size    90145 \
                    gopkg.in/ini.v1 \
                        lock    v1.67.0 \
                        rmd160  4aa285a6719b0bb909b12bb70cb08cdf66ffeff3 \
                        sha256  596cc2f7a771b35a1d308449ee2e3f96a79f834dd6d8d3c863c0fff321f70777 \
                        size    53538 \
                    gopkg.in/check.v1 \
                        lock    038fdea0a05b \
                        rmd160  0f1896097db9d42b2fb5d62999bb52c77635f758 \
                        sha256  a82bd5c6960aa523c4dd8b30d52c3a7e8a5382e91f25862ef277bedf5c107007 \
                        size    31647 \
                    golang.org/x/term \
                        lock    v0.5.0 \
                        rmd160  1617c36e9e3791aeaf34ac074ee964d90029b49c \
                        sha256  68d83a239f4a52763874891ebda16e86813793fc4cfd13d3624f47f3a76788fe \
                        size    14807 \
                    golang.org/x/sys \
                        lock    v0.5.0 \
                        rmd160  36adb4fe0fa6365d24736bde06750f8f272769a8 \
                        sha256  4f36d34b34167dde799a2a865701f0d8a2f61c812dcb45d2cba6e3fd86e82d91 \
                        size    1430348 \
                    github.com/xhit/go-str2duration \
                        lock    v1.2.0 \
                        rmd160  4548663a7adbf5dbf67377b28775254c76650412 \
                        sha256  9f087055492221e10a70ba78b8815dd33e3881c946e8b4bd7d4a18552c3e5776 \
                        size    4324 \
                    github.com/stretchr/testify \
                        lock    v1.7.0 \
                        rmd160  adae5096e8c4cfcc8e3f6d096646d1165b5ef49a \
                        sha256  f7dde97d0c9634483ae6ea273968f80f3105c22382a1f841886cd20d57586642 \
                        size    91096 \
                    github.com/stretchr/objx \
                        lock    v0.3.0 \
                        rmd160  a65e81e93f5c05771e99e7ecd7701b4f7166ec55 \
                        sha256  31196760451635317c33f55c706a1bdda1f4720ec85f47735e7f9e681b610df2 \
                        size    80495 \
                    github.com/skratchdot/open-golang \
                        lock    eef842397966 \
                        rmd160  1c1ff96072a72d95d27888f1ef0587217e634aec \
                        sha256  295985c3a5dfaf26e2bfbb679f730a7ec12aab6c5389cd937e1768909eb3d7f6 \
                        size    7070 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/niemeyer/pretty \
                        lock    a10e7caefd8e \
                        rmd160  46bcfc3db9e3d98acbacd1f96d9483fa360f88b7 \
                        sha256  97b952a32175ba84349ef352e523bfa15bf3a06e07e44458a908061fbc519b40 \
                        size    9405 \
                    github.com/mtibben/percent \
                        lock    v0.2.1 \
                        rmd160  9271475f842555667e1f0dc5e5f7a2310d71ba9a \
                        sha256  02873199713ddd96cb5b37738117ac860d13306db9e48ffb0ea539b2ea833ebd \
                        size    2166 \
                    github.com/mattn/go-tty \
                        lock    v0.0.4 \
                        rmd160  aeef24ae0b469f8a83cd43f40843ba3dc58f057d \
                        sha256  a9ee7c2dc5fcaf640eb3be20fbeab1cebd6fc56a160296c815d1129a0ff0091f \
                        size    7735 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.17 \
                        rmd160  8a79d7ac1ac5311cb4892f75b7a439fd07cccc17 \
                        sha256  e75610c71dfca6ab7f671d1372f7b603b98338b7cbf1098d5a418d5a6760fb52 \
                        size    4700 \
                    github.com/kr/text \
                        lock    v0.1.0 \
                        rmd160  0b3c78459e227170a3b80a0103d87a3eef77ed88 \
                        sha256  5ed970aad0da3cba3cffacdb4d154a162a8968655ee6d6f7b627e71b869efaf6 \
                        size    8691 \
                    github.com/gsterjov/go-libsecret \
                        lock    a6f4afe4910c \
                        rmd160  d1833e02c728e148960113fa28dbd4828f4b2c3c \
                        sha256  f7edbec029cace110cdf89fa29b7b3396068e41440ec529288ebfa9b4d1560fb \
                        size    3071 \
                    github.com/google/go-cmp \
                        lock    v0.5.9 \
                        rmd160  9832ae80123461baed8aa20e830199c0e21e337b \
                        sha256  3058d20d61f03aa05fca0fc07acb8c50850c68086998c542857aec7ad1529482 \
                        size    104431 \
                    github.com/godbus/dbus \
                        lock    4481cbc300e2 \
                        rmd160  cca4e351cd4faf9e7d24c47209ad4fb06ab47e3e \
                        sha256  2b73162d29ba100f88893be0ac4d569140e25dd5fc27f944fd4aa667720582d9 \
                        size    62538 \
                    github.com/dvsekhvalnov/jose2go \
                        lock    v1.5.0 \
                        rmd160  4274d180b827f40ebbaf970fb515c5adafb9475d \
                        sha256  e5b8529fc40411b40ac42a72651b4b3aa0e54882fe02c523bebcd5c578d56c22 \
                        size    68535 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/danieljoos/wincred \
                        lock    v1.1.2 \
                        rmd160  5f2c0d7c7ee4aafbb4737ab8206fe94b0e5211e4 \
                        sha256  8d880ad47b0c2724dfafff8bc881964acc28158ca8dfcee41027db4d873e3751 \
                        size    10268 \
                    github.com/aws/smithy-go \
                        lock    v1.13.5 \
                        rmd160  b26f3f8fba46a8fd5db8187e965bb93bd303e3e7 \
                        sha256  62bb578f51022f35804fbe060e66579e7e20adb75681f4e522ef35a6832a9417 \
                        size    327362 \
                    github.com/aws/aws-sdk-go-v2 \
                        lock    v1.17.5 \
                        rmd160  93434c518bf4b93d944872cc82776af3cbc13dcd \
                        sha256  dfaaeff499303c9ab8dd53d316a5d6f559f426504add2de8821d420f1c2209b0 \
                        size    33133872 \
                    github.com/alecthomas/units \
                        lock    b94a6e3cc137 \
                        rmd160  475fb97c605c63d01720516dc3ee372ec7f1926d \
                        sha256  509136c476a1135a5cc81223096a593c83ff41cd618ecff775c309d5a0efa0e3 \
                        size    6017 \
                    github.com/alecthomas/kingpin \
                        lock    v2.3.1 \
                        rmd160  00855a91a00f4944910fff9ca43c1313d5c44442 \
                        sha256  ce2cac676efd3097eaa785d2bb5470700032ef66a77eb008861d578dbb0d2c06 \
                        size    50416 \
                    github.com/99designs/keyring \
                        lock    v1.2.2 \
                        rmd160  a23458e3220601522ba3db63e38e70112020a868 \
                        sha256  2c79804bfa5baf37e1a8b11a36e4ef8691251cd9687a42c0a4cfdbbce7740722 \
                        size    28118 \
                    github.com/99designs/go-keychain \
                        lock    8e49817e8af4 \
                        rmd160  eb8f618943cc6643031fbc518bc70899280ecee0 \
                        sha256  e84bab6af1abc5902242e800c4a5e2dd39a9e3ab563e9ed14731b2d10007db85 \
                        size    2337283