2018-03-02 22:27:53 +00:00

36 lines
735 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2018/03/02 22:27:53 abieber Exp $
COMMENT = fast, efficient and secure backup program
V = 0.8.3
DISTNAME = restic-${V}
CATEGORIES = sysutils
HOMEPAGE = https://restic.net/
MAINTAINER = Aaron Bieber <abieber@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c pthread
MASTER_SITES = https://github.com/restic/restic/releases/download/v${V}/
MODULES = lang/go
MODGO_TYPE = bin
do-build:
cd ${WRKSRC} && ${MODGO_CMD} run -x build.go
do-test:
cd ${WRKSRC} && ${MODGO_CMD} test ./cmd/... ./internal/...
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/restic ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${PREFIX}/man/man1
.include <bsd.port.mk>