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

github.setup        nothings stb 2e2bef463a5b53ddf8bb788e25da6b8506314c08
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20241029
revision            0

categories          devel
platforms           any
supported_archs     noarch
license             {public-domain MIT}
maintainers         {judaew @judaew} openmaintainer

description         \
    Single-file public domain (or MIT licensed) libraries for C/C++.
long_description    {*}${description}

checksums           rmd160 fffe65c806f1b622123e11c5285692d089aae897 \
                    sha256 d5c5887f1bf57427a828f1f410bd0d26f648ef9f8e5b492ef602b3e48631d05a \
                    size 1510577

use_configure       no
build {}

destroot {
    xinstall -d ${destroot}${prefix}/include/${name}
    xinstall -m 0644 {*}[glob ${worksrcpath}/*.h] \
        ${destroot}${prefix}/include/${name}
    xinstall -m 0644 {*}[glob ${worksrcpath}/*.c] \
        ${destroot}${prefix}/include/${name}

    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 {*}[glob ${worksrcpath}/docs/*] \
        ${destroot}${prefix}/share/doc/${name}
}
