# -*- 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 1.0.1 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  b69dc12b933b47c7d4d6e3b75dc0547d6c517f7f \
                    sha256  303a2bc95f9fc2739dd748a8243849bccbfdb6c1a346cb92b63a18d85aa0deb7 \
                    size    1351035

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

build.args          ./cmd/${name}

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