# -*- 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/FiloSottile/age 1.2.0 v
go.package          filippo.io/age
github.tarball_from archive
revision            0

homepage            https://age-encryption.org

description         \
    A simple, modern and secure encryption tool with small explicit keys, no \
    config options, and UNIX-style composability.

long_description    {*}${description}

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

build.pre_args      -o ./_dist/ -ldflags \"-X main.Version=v${version}\"
build.args          ./cmd/...

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

pre-build {
    file mkdir ${worksrcpath}/_dist
}

destroot {
    foreach age_bin [glob ${worksrcpath}/_dist/*] {
        xinstall -m 0755 ${age_bin} ${destroot}${prefix}/bin/
    }
}

checksums           ${distname}${extract.suffix} \
                        rmd160  e378333f58758bbf14dd50fed8c41a3ffbcac4ad \
                        sha256  cefe9e956401939ad86a9c9d7dcf843a43b6bcdf4ee7d8e4508864f227a3f6f0 \
                        size    206676

go.vendors          golang.org/x/tools \
                        lock    v0.22.0 \
                        rmd160  9efcd715b413242db2a6e76ddd83cf2602a91c43 \
                        sha256  93f5232ec3b366ff222626155748995e724f19c2770434dda439983b331d4bd7 \
                        size    3853894 \
                    golang.org/x/term \
                        lock    v0.21.0 \
                        rmd160  e8d47b01773622b4c5a961913d1881885a898e4b \
                        sha256  df56e848ff3cacda0c6e28ee44167fe9a918b698be87b560713396db06dd8e9e \
                        size    14744 \
                    golang.org/x/sys \
                        lock    v0.21.0 \
                        rmd160  ade2329c34b6599b5af27f5c98b4d577a29d3d70 \
                        sha256  e3c7e36af881e884d7b7fcfc7ebdfd5f6b9db2c4b8a9430029eb54f0b7ce6163 \
                        size    1496276 \
                    golang.org/x/crypto \
                        lock    v0.24.0 \
                        rmd160  f895fe7a16ddc724f06664ba9ef753c342616804 \
                        sha256  15450a6f2258ba46e4930b2d23db32a4c1e985afe063cc810d43d9fee889119b \
                        size    1814588 \
                    github.com/rogpeppe/go-internal \
                        lock    v1.12.0 \
                        rmd160  ed748fa7713fcb28a8b0dd08c130eb4e61bf2a74 \
                        sha256  4e8a59559866e8e6a75f92ec826e6374c8d866da21ff8bb62b3eab3092214513 \
                        size    116901 \
                    filippo.io/edwards25519 \
                        repo    github.com/FiloSottile/edwards25519 \
                        lock    v1.1.0 \
                        rmd160  32e76862168e566190f9be95e5a88dcb10b3a6a2 \
                        sha256  a68a54423370e136bf03e4217d2fba807b4d041f873f6ebbcfc8ad4ba9925f5d \
                        size    47132 \
                    c2sp.org/CCTV/age \
                        repo    github.com/C2SP/CCTV \
                        lock    3ec4d716e805 \
                        rmd160  90453ef2a0124ea96c2277e2958714c017848b9e \
                        sha256  bfcb2271eb2494be4ccf0eb6f634ccd43dedee8aca92005c4c4fc57c343dbe7b \
                        size    1651565
