freebsd-ports/sysutils/gomi/Makefile
Muhammad Moinur Rahman a5a000df3b
lang/go: Change DEFAULT to 1.21
PR:		277776
Approved by:	portmgr (exp-run)
2024-03-24 15:29:00 +01:00

34 lines
718 B
Makefile

PORTNAME= gomi
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.6
PORTREVISION= 6
CATEGORIES= sysutils
MAINTAINER= eduardo@FreeBSD.org
COMMENT= Unix rm(1) command that can restore deleted files
WWW= https://github.com/b4b4r07/gomi
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSIONFULL}
_BUILD_REVISION= e63731a
GO_MODULE= github.com/b4b4r07/gomi
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.Version=${_BUILD_VERSION} \
-X main.Revision=${_BUILD_REVISION}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>