Skip to content

Commit

Permalink
syncthing: Just build the binary we install, fixes some archs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Jan 23, 2018
1 parent 6dd5be1 commit cdebdfb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions net/syncthing/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.63 2018/01/10 15:43:10 wiz Exp $
# $NetBSD: Makefile,v 1.64 2018/01/23 13:58:46 jperkin Exp $

# Upstream regularly breaks protocol compatibility. While users of
# pkgsrc syncthing on multiple systems can update synchronously, an
Expand Down Expand Up @@ -31,7 +31,8 @@ GITHUB_TAG= v${PKGVERSION_NOREV}

BUILD_DEPENDS+= go-[0-9]*:../../lang/go

USE_LANGUAGES= # go
# The 'zillode' dependency calls the compiler on certain archs.
USE_LANGUAGES= c
NO_CONFIGURE= yes

INSTALLATION_DIRS= bin
Expand Down Expand Up @@ -82,10 +83,10 @@ post-extract:
${LN} -s ${WRKPLACE} ${WRKSRC}

do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/go run build.go
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/go run build.go build syncthing

# Binaries other than syncthing proper should perhaps be installed.
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/syncthing ${DESTDIR}/${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/syncthing ${DESTDIR}/${PREFIX}/bin

.include "../../mk/bsd.pkg.mk"

0 comments on commit cdebdfb

Please sign in to comment.