# -*- 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           github 1.0

name                screenfetch
github.setup        KittyKatt screenFetch e2ca5ae907c7466c23b7286d11cb4a8b7763f1d1
version             2023.12.28
platforms           any
supported_archs     noarch
license             GPL-3
maintainers         nomaintainer
categories          sysutils

description         CLI system information tool
long_description    ${name} fetches system/theme information in terminal.

checksums           rmd160  4c2432b2bb333523204315f625f5aca0ba6f2dd9 \
                    sha256  588829789fa3bd6ae5937c74e14ce581a6e6269cbaf7b0c70c07e63a522bdcb2 \
                    size    80110
github.tarball_from archive

depends_run         port:bash \
                    port:xprop

use_configure       no

post-patch {
    reinplace "s|/usr/bin/env bash|${prefix}/bin/bash|" ${worksrcpath}/screenfetch-dev
}

build {
    file attributes ${worksrcpath}/screenfetch-dev -permissions +x
}

destroot {
    move ${worksrcpath}/screenfetch-dev ${destroot}${prefix}/bin/${name}
    xinstall -d ${destroot}${prefix}/share/man/man1
    copy ${worksrcpath}/screenfetch.1 ${destroot}${prefix}/share/man/man1/
}
