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

name                pgstd
version             0.8.0
revision            0
categories          databases
platforms           darwin
supported_archs     x86_64 arm64
license             FSL-1.1-MIT
maintainers         {gitlab.osss.net:cg} openmaintainer
description         Export a PostgreSQL database to a per-object SQL file tree
long_description    Export a PostgreSQL database to a per-object SQL file tree. This port installs the prebuilt macOS universal2 \
                    binary from the osss release server.
homepage            https://tools.osss.net/pgstd/

master_sites        https://gitlab.osss.net/api/v4/projects/8/packages/generic/postgres_schema_to_directory/${version}/
distfiles           ${name}-macos-universal2${extract.suffix}
dist_subdir         ${name}/${version}
extract.mkdir       yes

checksums           sha256  b4ce7fcd524fc3a02e4e753fb42fba7040b0b11e7cd01dc8b257aeebb9b3b16a \
                    size    5078692

use_configure       no
build {}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
}

livecheck.type      none
