1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/sysutils/duf/Makefile
2022-03-30 03:01:44 -04:00

35 lines
641 B
Makefile

PORTNAME= duf
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.1
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= 3c55411
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>