# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        creaktive rainbarf 1.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

maintainers         gmail.com:creaktive

categories          sysutils
license             {Artistic-1 GPL}
description         CPU/RAM/battery stats chart bar for tmux (and GNU screen)
long_description    ${name}: {*}${description}

platforms           any

supported_archs     noarch

checksums           rmd160  4d62017ff01f14dc7ceafc3f7a21539731f24f43 \
                    sha256  75e7976f555c490620e5953db9e3521b92ab561d4efac6cbf3c5a8207f0999db

depends_build       bin:pod2man:perl5

use_configure       no

build {}

destroot {
    xinstall -m 775 ${worksrcpath}/rainbarf ${destroot}${prefix}/bin
    system "pod2man --section=1 ${worksrcpath}/rainbarf > \
        ${destroot}${prefix}/share/man/man1/rainbarf.1"
}
