# $OpenBSD$

COMMENT =	backup program that is fast, efficient and secure

GH_ACCOUNT =	restic
GH_PROJECT =	restic
GH_TAGNAME =	v0.3.3
CATEGORIES =	sysutils

MAINTAINER =	Bjorn Ketelaars <bjorn.ketelaars@hydroxide.nl>

# 2-clause BSD
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB +=	c pthread

MODULES =	lang/go
MODGO_ENV =	PATH="${PORTPATH}" TMPDIR="${WRKBUILD}"

do-build:
	cd ${WRKSRC} && ${MODGO_CMD} run build.go

do-test:
	cd ${WRKSRC} && ${MODGO_CMD} run build.go --test

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/restic ${PREFIX}/bin/restic

.include <bsd.port.mk>
