# -*- 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.32.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  561123f14466bdff4df7c14694f284c105c1e332 \
                    sha256  2b647c3b222392fcf25583acd2411ec05635055ef7272c7ab4bd2885e53065e0 \
                    size    285471

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