# -*- 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.16 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  55554ebb6cf9dac3395af2881a2ed86a96a8902e \
                    sha256  9cab807c37c4726a72a9bd33ba3f690765724cc4ec4a37b5b788abffd23331f6 \
                    size    831414

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