# -*- 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.1 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}

go.offline_build    no

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

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

checksums           ${distname}${extract.suffix} \
    rmd160  611b778518c2c4ea0ed726e0ca6f344deef7fffa \
    sha256  67e18a66fdad76c2c94fab20996f7ccd7864e774dae92bb0c6cc38a94daa2e74 \
    size    14817768
