# -*- 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/minamijoyo/tfmigrate 0.4.4 v
go.offline_build    no
revision            0

description         A Terraform state migration tool for GitOps

long_description    {*}${description}

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

checksums           rmd160  95a2a67dbe3fecac2002796c64fd504b72f65159 \
                    sha256  85d8fa6881efdd444a3102dfbddc0559380643d2d72d871c1cbe3cfd3df1902d \
                    size    94825

build.cmd           make
build.target        build

patch {
    # Don't try to download dependencies as a prerequisite to build
    reinplace {s|^build: deps|build:|} ${worksrcpath}/Makefile
}

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

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