freebsd-ports/net/syncthing-inotify/Makefile
2015-06-27 14:55:36 +00:00

37 lines
954 B
Makefile

# $FreeBSD$
PORTNAME= syncthing-inotify
PORTVERSION= 0.6.5
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= swills@FreeBSD.org
COMMENT= Syncthing inotify monitor
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
USE_GITHUB= yes
GH_ACCOUNT= syncthing cenkalti:backoff zillode:notify
GH_PROJECT= backoff:backoff notify:notify
GH_TAGNAME= 6c45d6b:backoff f06b1e3:notify
STRIP= # stripping can break go binaries
PLIST_FILES= bin/syncthing-inotify
post-extract:
@${MKDIR} ${WRKSRC}/src/github.com/cenkalti
@${MKDIR} ${WRKSRC}/src/github.com/zillode
@${MV} ${WRKSRC_backoff} \
${WRKSRC}/src/github.com/cenkalti/backoff
@${MV} ${WRKSRC_notify} \
${WRKSRC}/src/github.com/zillode/notify
do-build:
@cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build
@${MV} ${WRKSRC}/syncthing-inotify-${PORTVERSION} ${WRKSRC}/syncthing-inotify
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/syncthing-inotify ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>