1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/sysutils/gomi/Makefile
2023-04-08 10:13:25 -05:00

35 lines
718 B
Makefile

PORTNAME= gomi
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.6
PORTREVISION= 1
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>