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

name                asar
version             4.0.1
revision            0

categories          archivers devel
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Simple extensive tar-like archive format with indexing
long_description    ${name} is a simple extensive archive format, it works like tar that concatenates all \
                    files together without compression, while having random access support.

homepage            https://www.electronjs.org/docs/latest/tutorial/asar-archives

npm.rootname        @electron/${name}
distname            ${name}-${version}

checksums           rmd160  2466a450e55425106d7c0f66b2702675aa53fc05 \
                    sha256  d2c9020db3934aeed1ec8c2a29c11ad57955f4d341e6dff46d188d1c9df97f56 \
                    size    22428

platform darwin {
    if {${os.major} <= 20} {
        # 11.0-
        npm.nodejs_version \
                    18
        npm.version 9
    }
}
