# -*- 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/metaspartan/mactop 2.0.7 v
go.package          github.com/metaspartan/mactop/v2
github.tarball_from archive
revision            0

description         Apple Silicon Monitor Top written in Golang

long_description    \
    ${name} is a terminal-based monitoring tool \"top\" designed to display \
    real-time metrics for Apple Silicon chips. It provides a simple and \
    efficient way to monitor CPU and GPU usage, E-Cores and P-Cores, power \
    consumption, temperature, memory, network, disk, and other system metrics \
    directly from your terminal.

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           {darwin >= 18}

checksums           rmd160  f8d7143ea0c9b4ad9bb6443f8a6bde1f8e356cd6 \
                    sha256  e168276bd4be21fa9fc2d6b26dde6279261343d4a53cfcf3c76b7d5083cf0691 \
                    size    14843909

go.offline_build    no

build.args-append   -o ./${name}

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