# -*- 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/benbjohnson/litestream 0.3.13 v
go.offline_build    no
revision            0

homepage            https://litestream.io/

description         Streaming replication for SQLite

long_description    \
    Litestream is a standalone disaster recovery tool for SQLite. It runs as \
    a background process and safely replicates changes incrementally to \
    another file or S3. Litestream only communicates with SQLite through the \
    SQLite API so it will not corrupt your database.

categories          databases net
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  2896366482985183201475e0d641995fd85b2609 \
                    sha256  92cb22323b8168f6efdfcad270772fea9e78c709a7149b1bf35d81fcb88bdaf9 \
                    size    86613

build.pre_args-append \
    -ldflags \" -X main.Version=${github.tag_prefix}${version} \"
build.args          ./cmd/${name}

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