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

go.setup            github.com/prest/prest 1.4.3 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            0

categories          devel databases
license             MIT
maintainers         {judaew @judaew} openmaintainer

description         pREST (PostgreSQL REST) is REST API for any Postgres database.
long_description    \
    pREST (PostgreSQL REST), simplify and accelerate development, instant, \
    realtime, high-performance on any Postgres application, existing or new
homepage            https://prestd.com

checksums           ${distname}${extract.suffix} \
                       rmd160  44210e6f42fbc307235dba963d1c4aedfa552fe3 \
                       sha256  3a07502df3eecf1fbb15d51570d7fd983097bff7edcecc17a736020b35781be0 \
                       size    91181

# FIXME: This port currently can't be built without allowing go mod to fetch
go.offline_build no

build.args          -o prestd ./cmd/prestd

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

github.livecheck.regex {([0-9.]+)}
