freebsd-ports/sysutils/gomplate/Makefile
2024-08-09 06:24:09 +00:00

26 lines
667 B
Makefile

PORTNAME= gomplate
DISTVERSIONPREFIX= v
DISTVERSION= 4.1.0
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= eduardo@FreeBSD.org
COMMENT= Command-line tool for rendering templates before executing binaries
WWW= https://github.com/hairyhenderson/gomplate
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.22,modules
GO_MODULE= github.com/hairyhenderson/gomplate/v4
GH_TAG_COMMIT= fba3b4d
GO_TARGET= ./cmd/gomplate
GO_BUILDFLAGS= -ldflags "\
-w -s \
-X github.com/hairyhenderson/gomplate/v4/version.GitCommit=${GH_TAG_COMMIT} \
-X github.com/hairyhenderson/gomplate/v4/version.Version=${DISTVERSION}"
PLIST_FILES= bin/gomplate
.include <bsd.port.mk>