View | Details | Raw Unified | Return to bug 239866
Collapse All | Expand All

(-)finance/cointop/Makefile (-13 / +3 lines)
Lines 10-32 Link Here
10
LICENSE=	APACHE20
10
LICENSE=	APACHE20
11
LICENSE_FILE=	${WRKSRC}/LICENSE.md
11
LICENSE_FILE=	${WRKSRC}/LICENSE.md
12
12
13
USES=		go
13
USES=		go:modules
14
14
15
USE_GITHUB=	yes
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	miguelmota
16
GH_ACCOUNT=	miguelmota
17
GH_PROJECT=	cointop
18
17
18
GO_BUILDFLAGS=	-ldflags="-X main.Version=${DISTVERSION}"
19
19
PLIST_FILES=	bin/cointop
20
PLIST_FILES=	bin/cointop
20
21
21
do-build:
22
	 	@${MKDIR} ${WRKSRC}/github.com/${GH_ACCOUNT}
23
		@${RLN} ${WRKSRC} ${WRKSRC}/github.com/${GH_ACCOUNT}/${PORTNAME}
24
		@${RLN} ${WRKSRC} ${WRKSRC}/src
25
		cd ${WRKSRC} && \
26
			${SETENV} ${MAKE_ENV} ${GO_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \
27
			${GO_CMD} build -ldflags "-X main.Version=${DISTVERSION}" -o bin/${PORTNAME}
28
29
do-install:
30
		${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
31
32
.include <bsd.port.mk>
22
.include <bsd.port.mk>

Return to bug 239866