# -*- 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                terroo-fonts
github.setup        terroo fonts ebbc26b7c6bd774b5431cfe55e25c3f2802c3016
version             20250518
revision            0
categories          fonts
platforms           any
# https://github.com/terroo/fonts/issues/5
# license             MIT
maintainers         nomaintainer
description         Fonts Terminal Root
long_description    {*}${description} – a quick alternative to Nerd Fonts!
checksums           rmd160  d54a696f7702b18b2b1bbb1ad0f4574b05695dbf \
                    sha256  fc2c1d87d6b3f8a9fd4144e5fb2671ceb65807e559b4896f070cddc9f66cfedf \
                    size    85047197
github.tarball_from archive
supported_archs     noarch

depends_run         port:fontconfig

use_configure       no

build               {}

destroot {
    set fontdir ${destroot}${prefix}/share/fonts/
    xinstall -m 0755 -d ${fontdir}
    move ${worksrcpath}/fonts ${fontdir}/${name}
}

post-activate {
    system "${prefix}/bin/fc-cache -v ${prefix}/share/fonts"
}
post-deactivate {
    system "${prefix}/bin/fc-cache -v ${prefix}/share/fonts"
}
