# -*- 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.5 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  4d34beb0a65ba8e7213cffa5464403a42bb74bf4 \
                    sha256  ebffe76bd1eae4cbc1071c7c37ea5f3f667caadc1a706bcef2af6511d6e1b284 \
                    size    14833949

go.offline_build    no

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

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