summaryrefslogtreecommitdiff
path: root/sysutils/duf/Makefile
blob: 925014f8003bdf00d6bae5dfaa99943de59e736a (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
36
37
38
39
40
41
42

PORTNAME=	duf
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.2
CATEGORIES=	sysutils

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Disk Usage/Free Utility

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_GITHUB=	yes
GH_ACCOUNT=	muesli
GH_TUPLE=	golang:crypto:5c72a883971a:golang_crypto/vendor/golang.org/x/crypto \
		golang:sys:af09f7315aff:golang_sys/vendor/golang.org/x/sys \
		jedib0t:go-pretty:v6.0.5:jedib0t_go_pretty_v6/vendor/github.com/jedib0t/go-pretty/v6 \
		lucasb-eyer:go-colorful:v1.2.0:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \
		mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
		mattn:go-runewidth:v0.0.10:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
		muesli:termenv:v0.8.1:muesli_termenv/vendor/github.com/muesli/termenv \
		rivo:uniseg:v0.1.0:rivo_uniseg/vendor/github.com/rivo/uniseg

_BUILD_VERSION=	${DISTVERSION}
_BUILD_SHA=	d1d2865

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>