1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/sysutils/duf/Makefile
2021-05-13 18:59:48 +01:00

35 lines
641 B
Makefile

PORTNAME= duf
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.2
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= lcook@FreeBSD.org
COMMENT= Disk Usage/Free Utility
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
_BUILD_VERSION= ${DISTVERSION}
_BUILD_SHA= d1d2865
GO_MODULE= github.com/muesli/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X main.Version=${_BUILD_VERSION} \
-X main.CommitSHA=${_BUILD_SHA}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>