# -*- 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/ivaaaan/smug 0.3.18 v
revision            0

description         A session manager for tmux written in Go

long_description    {*}${description}. Smug automates your tmux workflow. \
                    You can create a single configuration file, and Smug will \
                    create all the required windows and panes from it. \
                    Inspired by tmuxinator and tmuxp.

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

build.cmd           make
build.pre_args      VERSION=${version}
build.args          build

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

    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/man/man1/${name}.1 \
        ${destroot}${prefix}/share/man/man1/

    set bash_comp_dir ${prefix}/share/bash-completion/completions
    set fish_comp_dir ${prefix}/share/fish/vendor_completions.d

    xinstall -d ${destroot}${bash_comp_dir}
    xinstall -d ${destroot}${fish_comp_dir}

    xinstall -m 0755 ${worksrcpath}/completion/${name}.bash \
        ${destroot}${bash_comp_dir}/

    xinstall -m 0644 ${worksrcpath}/completion/${name}.fish \
        ${destroot}${fish_comp_dir}/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  b36965549466b8bbd046753d4a8c14689f54669d \
                        sha256  a7397f62415adc096afdbef87af297a7d1fd625a55abb9c5dac3bc39d1196d0d \
                        size    19384

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    github.com/spf13/pflag \
                        lock    v1.0.10 \
                        rmd160  eb2e68c61d88ce1e22cf4b75b31de9815ee375b5 \
                        sha256  8e29e9893c782030a639e4e1ff4442cef352fa54b64aaa11c35163d550ce10dd \
                        size    63166
