# -*- 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.12.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  c17199ef70d06f3c3a8c798c99e77cc46793d472 \
                    sha256  80a36439bbb01f4282792cd75257b52689e7eee9b0c6b9a635dfbff2958c9207 \
                    size    277529

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