# -*- 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/dundee/gdu 5.31.0 v
go.offline_build    no
go.package          github.com/dundee/gdu/v5
revision            0

description         Disk usage analyzer with console interface written in Go

long_description    Pretty fast disk usage analyzer written in Go.  Gdu is \
                    intended primarily for SSD disks where it can fully \
                    utilize parallel processing. However HDDs work as well, \
                    but the performance gain is not so huge.

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

checksums           rmd160  b5777103d71bf96b9d06496cf19f1881a38e6981 \
                    sha256  e3727680ea346ce86e63d4c97841cbc5e17c6d8e58fac8b8e9886e3339214e9d \
                    size    283853

build.cmd           make
build.args-append   VERSION=${version} \
                    build

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

    xinstall -d ${destroot}${prefix}/share/man/man1

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

notes "
    ${name} has been installed as `${name}-go`.
"
