Index: net-im/matterbridge/Makefile
===================================================================
--- net-im/matterbridge/Makefile	(revision 508920)
+++ net-im/matterbridge/Makefile	(working copy)
@@ -11,11 +11,10 @@
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go
+USES=		go:modules
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	42wim
-GH_SUBDIR=	src/github.com/42wim/matterbridge
 
 USE_RC_SUBR=	matterbridge
 
@@ -30,12 +29,7 @@
 		MATTERBRIDGE_USER=${MATTERBRIDGE_USER} \
 		MATTERBRIDGE_GROUP=${MATTERBRIDGE_GROUP}
 
-do-build:
-	@cd ${WRKSRC}/src/github.com/42wim/matterbridge && \
-		${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+post-install:
 	${INSTALL_DATA} ${WRKSRC}/matterbridge.toml.sample ${STAGEDIR}${PREFIX}/etc/matterbridge.toml.sample
 
 .include <bsd.port.mk>