# -*- 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.38.0 v
go.offline_build    no
go.toolchain_min    1.26.0
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  3bf636f1d90a892fe7dfffbdaa832691b6e6af1d \
                    sha256  44589852e4b1a82fc766182f654e4269d469ec2f9a9f2755a72a7991a5a5ac37 \
                    size    576621

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