# -*- 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.1.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  ab2d8e52925316ead1fdacb21675a223633032ec \
                    sha256  df49979c413b8a3a6e98ccfb553fafeb94fd652ec13a830205d057c8d73cace7 \
                    size    15034921

go.offline_build    no

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

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