summaryrefslogtreecommitdiff
path: root/irc/komanda-cli/Makefile
blob: 6e140df1a951cec44f1597e870ae8c1b2aa6dd87 (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
PORTNAME=	komanda-cli
DISTVERSION=	g20190920
PORTREVISION=	13
CATEGORIES=	irc

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Komanda command-line IRC client
WWW=		https://github.com/mephux/komanda-cli

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_GITHUB=	yes
GH_ACCOUNT=	mephux
GH_TAGNAME=	b5ba03b
GH_TUPLE=	golang:sys:v0.6.0:sys

_BUILD_SHA=	${GH_TAGNAME}
_BUILD_COUNT=	138
_BUILD_TAG=	${_BUILD_COUNT}.${_BUILD_SHA}

GO_BUILDFLAGS=	-ldflags "\
		${STRIP} -w \
		-X main.Build=${_BUILD_TAG}"

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

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 <bsd.port.mk>