# -*- 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/muesli/duf 0.9.1 v
go.offline_build    no
go.toolchain_min    1.23.0
revision            1

description         Disk Usage/Free Utility - a better 'df' alternative
long_description    ${description}

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

build.args-append   -ldflags \"-X 'main.Version=${version}'\"

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

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

checksums           ${distname}${extract.suffix} \
                        rmd160  a5f5f9d2a500209f940cf2b564ca0d09daad9dac \
                        sha256  1334d8c1a7957d0aceebe651e3af9e1c1e0c6f298f1feb39643dd0bd8ad1e955 \
                        size    140930

