# -*- 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                pgsm
version             0.9.2
revision            0
categories          databases
platforms           darwin
supported_archs     x86_64 arm64
license             FSL-1.1-MIT
maintainers         {gitlab.osss.net:cg} openmaintainer
description         Declarative PostgreSQL schema management (diff, plan, apply)
long_description    Declarative PostgreSQL schema management (diff, plan, apply). This port installs the prebuilt macOS universal2 \
                    binary from the osss release server.
homepage            https://tools.osss.net/pgsm/

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

checksums           sha256  185c955ac6947ed551477560099a443840e65bb72fb26720a29d809b1ff8f1bc \
                    size    4759798

use_configure       no
build {}

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

livecheck.type      none
