sthen 9c0d186099 add a comment next to BROKEN-aarch64 to suggest trying removing it with the
next update, hopefully vendored libs will be updated by then
2020-04-17 23:59:50 +00:00

40 lines
840 B
Makefile

# $OpenBSD: Makefile,v 1.14 2020/04/17 23:59:50 sthen Exp $
BROKEN-aarch64 = looks like the vendored golang.org/x/sys/unix is too old for aarch64
# try removing above with next update
COMMENT = fast, efficient and secure backup program
V = 0.9.6
DISTNAME = restic-${V}
CATEGORIES = sysutils
HOMEPAGE = https://restic.net/
MAINTAINER = Aaron Bieber <abieber@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MASTER_SITES = https://github.com/restic/restic/releases/download/v${V}/
MODULES = lang/go
MODGO_TYPE = bin
NO_TEST = Yes
ALL_TARGET = github.com/restic/restic
do-build:
cd ${WRKSRC} && ${MODGO_CMD} build ./cmd/restic/...
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>