File:  [cvs.NetBSD.org] / pkgsrc / sysutils / packer / Makefile
Revision 1.11: download - view: text, annotated - select for diffs
Sun Oct 15 12:04:32 2023 UTC (13 months, 3 weeks ago) by bsiegert
Branches: MAIN
CVS tags: HEAD
Revbump all Go packages after go120 security update

# $NetBSD: Makefile,v 1.11 2023/10/15 12:04:32 bsiegert Exp $

DISTNAME=	packer-1.9.2
PKGREVISION=	3
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=hashicorp/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	iquiw@NetBSD.org
HOMEPAGE=	https://www.packer.io/
COMMENT=	Tool for creating identical machine images for multiple platforms
LICENSE=	mpl-2.0

EXTRACT_USING=	bsdtar

.include "go-modules.mk"

GO_BUILD_PATTERN=	.
GO_XFLAG_PREFIX=	-X github.com/hashicorp/packer/version
GO_LDFLAGS+=		${GO_XFLAG_PREFIX}.Version=${PKGVERSION_NOREV}
INSTALLATION_DIRS+=	bin

do-build:
	${RUN}${_ULIMIT_CMD} cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} \
		${GO} install -v -ldflags ${GO_LDFLAGS:Q} ${GO_BUILD_PATTERN}

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/packer ${DESTDIR}${PREFIX}/bin

.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>