PORTNAME=	litestream
PORTVERSION=	0.5.8
DISTVERSIONPREFIX=	v
PORTREVISION=	2
CATEGORIES=	databases

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Streaming replication for SQLite
WWW=		https://litestream.io/ \
		https://github.com/benbjohnson/litestream

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	aarch64 amd64
ONLY_FOR_ARCHS_REASON=	module modernc.org/sqlite only supported on aarch64 and amd64

USES=		go:modules

GO_MODULE=	github.com/benbjohnson/litestream
GO_TARGET=	./cmd/litestream

PLIST_FILES=	bin/litestream

.include <bsd.port.mk>
