aboutsummaryrefslogtreecommitdiff
path: root/sysutils/viddy/Makefile
blob: 409b7c1f916d5ee6ad14d954b5c1a50e870efccd (plain) (blame)
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
PORTNAME=	viddy
DISTVERSIONPREFIX=	v
DISTVERSION=	0.3.4
PORTREVISION=	22
CATEGORIES=	sysutils
MASTER_SITES=

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Modern watch command
WWW=		https://github.com/sachaos/viddy

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules

GO_MODULE=	github.com/sachaos/${PORTNAME}
GO_BUILDFLAGS=	-ldflags "\
		-s -w \
		-X main.version=${DISTVERSION}"

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	README.md

PORTSCOUT=	ignore:1 site:none

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
		${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>