mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
8185a5e24e
PR: 231929 Submitted by: Nathan <ndowens@yahoo.com> (maintainer)
33 lines
731 B
Makefile
33 lines
731 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cointop
|
|
PORTVERSION= 1.0.6
|
|
CATEGORIES= finance
|
|
|
|
MAINTAINER= ndowens@yahoo.com
|
|
COMMENT= Light cryptocurrency coin stats
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
USES= go
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= miguelmota
|
|
GH_PROJECT= cointop
|
|
|
|
PLIST_FILES= bin/cointop
|
|
|
|
do-build:
|
|
@${MKDIR} ${WRKSRC}/github.com/${GH_ACCOUNT}
|
|
@${RLN} ${WRKSRC} ${WRKSRC}/github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
@${RLN} ${WRKSRC} ${WRKSRC}/src
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${GO_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \
|
|
${GO_CMD} build -ldflags "-X main.Version=${DISTVERSION}" -o bin/${PORTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|