# -*- 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.5.18 v
go.offline_build    no
go.toolchain_min    1.26.0
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  91bd12393cc7106b7b4f65cb7495c152a23132b9 \
                    sha256  9b81e469dbe17006fa7646c25703eeffb921a22987112b13bfe1735f4c3a23aa \
                    size    894232

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/
}
