# -*- 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.36.1 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  b687f6a1e821d5b9397b4654d4a1916e42b29e7d \
                    sha256  dd31ea9afd848edf734143aabd5fdf66236ce2c866dc09f9dededb61d39fe63c \
                    size    340256

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`.
"
