# -*- 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/umputun/spot 1.18.0 v
name                simplotask
revision            0
categories          sysutils
maintainers         {@sikmir disroot.org:sikmir} openmaintainer
license             MIT

description         A tool for effortless deployment and configuration management
long_description    {*}${description}
homepage            https://spot.umputun.dev/

build.cmd           make
build.pre_args-append \
                    REV=v${version}
build.args          build

checksums           rmd160  dd330a2a643832ec8413218808c62fa4a5260d2d \
                    sha256  503a0d4d368261395c72a67cfb5cfa6a6bdbcbd0d017f81bcc3b962903fda6e1 \
                    size    53948628

destroot {
    xinstall -m 0755 ${worksrcpath}/.bin/spot ${destroot}${prefix}/bin
    xinstall -m 0755 ${worksrcpath}/.bin/spot-secrets ${destroot}${prefix}/bin

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