# -*- 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/atinylittleshell/gsh 0.22.2 v
go.offline_build    no
revision            0

description         A modern, POSIX-compatible, generative shell

long_description    {*}${description}

categories          shells
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  c95ddd8ea8ab3fcde6f111845f039d4f3dcccd15 \
                    sha256  a5cb3d0e90d947a0724e21f58998fcea82c7d9f23840971a1bf21127c22fce26 \
                    size    942315

build.pre_args-append \
    -ldflags \" -X main.BUILD_VERSION=${version} \"

build.args          ./cmd/${name}

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