# -*- 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.5.5 v
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  f9b9897658df44bbce4f069835930167520e6768 \
                       sha256  a9a94f4c00629044bf60de214b51d4defb17b30a41b369d404043adde955673f \
                       size    97640

# 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.]+)}
