# -*- 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.10.1 v
go.offline_build    no
github.tarball_from archive
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  f12e1df3f5f5c671da14dd0b1e8c0302fde8e8df \
                    sha256  e08d3ff93fdd551683b40028bc05a9bc34e077c44bfb88099db9b1027a27131e \
                    size    273906

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