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

gitlab.setup        libosinfo osinfo-db 20260812 v
platforms           any
categories          sysutils gnome
license             LGPL-2.1+
maintainers         {makr @mohd-akram} openmaintainer
supported_archs     noarch

description         Libosinfo database files
long_description    {*}${description}

homepage            https://libosinfo.org
gitlab.master_sites ${gitlab.homepage}/-/releases/${gitlab.tag_prefix}${version}/downloads

checksums           rmd160  c6e8165dcf2493cd81bb58cea0d0572c2e812898 \
                    sha256  f13ed6e1e480b5266d39cad7f0010febdf0265dfc45579de2fb34543bc6b35de \
                    size    176388

depends_build       port:osinfo-db-tools

use_xz              yes
use_configure       no

extract.only

build {}

destroot {
    system "osinfo-db-import --system --root \"${destroot}\" \"${distpath}/${distfiles}\""
}
