PORTNAME= duf DISTVERSIONPREFIX= v DISTVERSION= 0.8.1 PORTREVISION= 22 CATEGORIES= sysutils MAINTAINER= lcook@FreeBSD.org COMMENT= Disk Usage/Free Utility WWW= https://github.com/muesli/duf LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_GITHUB= nodefault GH_TUPLE= golang:sys:v0.6.0:sys _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 PORTSCOUT= skipv:v0.11.0 OPTIONS_DEFINE= DOCS pre-patch: ${RM} -r ${WRKSRC}/vendor/golang.org/x/sys ${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \ ${STAGEDIR}${DOCSDIR} .include