# -*- 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.17 v
go.offline_build    no
go.toolchain_min    1.25.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  3a7ba50a137483f2620e53adb4af0627a7c9cb07 \
                    sha256  cf347231b6ee7ef28b5e3d80b6202edd16da29f29f66c339fe4a5c82f78d13f0 \
                    size    844163

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