blob: bfd816fa652e663d78bd79ad96e247ad173dc388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
PORTNAME= duf
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.1
PORTREVISION= 11
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
_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>
|