# -*- 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/sigstore/gitsign 0.14.0 v
go.offline_build    no
revision            0

description         Keyless Git signing using Sigstore

long_description    {*}${description}

categories          security devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  a5f3e6802659c670d5031f3ca7cfc66d5abdd44e \
                    sha256  340c806f74fc19a2e9d0443f48239cc3dc40fa5c001355fb355a3f486dccf4f9 \
                    size    286571

build.cmd           make
build.pre_args-append \
                    GIT_VERSION="${github.tag_prefix}${version}"
build.args          build-all

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