summaryrefslogtreecommitdiff
path: root/audio/go-librespot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/go-librespot/Makefile')
-rw-r--r--audio/go-librespot/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/audio/go-librespot/Makefile b/audio/go-librespot/Makefile
new file mode 100644
index 000000000000..4388105dde14
--- /dev/null
+++ b/audio/go-librespot/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= go-librespot
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.5.0
+PORTREVISION= 1
+CATEGORIES= audio
+
+MAINTAINER= ale@biancalanas.net
+COMMENT= Yet another open-source Spotify Connect client, written in Go
+WWW= https://github.com/devgianlu/go-librespot
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libogg.so:audio/libogg \
+ libasound.so:audio/alsa-lib \
+ libvorbis.so:audio/libvorbis
+
+USES= go:modules pkgconfig
+USE_RC_SUBR= ${PORTNAME}
+
+GO_MODULE= github.com/devgianlu/go-librespot
+
+GO_TARGET= ./cmd/daemon:${PREFIX}/bin/go-librespot
+GO_BUILDFLAGS= -ldflags "-X github.com/devgianlu/go-librespot.version=${DISTVERSION} -X github.com/devgianlu/go-librespot.commit=fc55ed0"
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${FILESDIR}/config.yml ${STAGEDIR}${ETCDIR}/config.yml.sample
+
+.include <bsd.port.mk>