--- /dev/null
+DIST upmpdcli-1.2.15.tar.gz 401551 BLAKE2B 0ec3fd67d67fd039f5b0ac385ad12a78e3c48b0d2530690eb9aaff66bbdbf7ae7229d64cfe753d9e70e75070ee5bc4d0849d11909813f06377981974733134ee SHA512 4a62aced9fa2395752164332c84bf3dedd7b793e7e37638cfe063e887d52b9ce956c866de2aa1cddb7a4dcad97562050f9588aedd59e49e7d427671179f9258a
--- /dev/null
+config=/etc/upmpdcli.conf
--- /dev/null
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
+pidfile=/var/run/upmpdcli.pid
+command=/usr/bin/upmpdcli
+config="${config:-/etc/upmpdcli.conf}"
+command_args="-c ${config}"
+command_args_background="-D"
+
+depend() {
+ need localmount mpd
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>stasibear@gentoo.org</email>
+ <description>Primary maintainer</description>
+</maintainer>
+<longdescription>
+ UPnP Media Renderer front-end for MPD, the Music Player Daemon
+</longdescription>
+<use>
+ <flag name="thirdparty">
+ Enable streaming from Qobuz and Tidal external services
+ </flag>
+</use>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
+HOMEPAGE="https://www.lesbonscomptes.com/upmpdcli/index.html"
+LICENSE="GPL-2"
+
+SRC_URI="https://www.lesbonscomptes.com/upmpdcli/downloads/${P}.tar.gz"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="thirdparty"
+
+DEPEND="
+ dev-libs/jsoncpp
+ media-libs/libmpdclient
+ net-libs/libmicrohttpd
+ net-libs/libupnpp
+"
+RDEPEND="
+ ${DEPEND}
+ thirdparty? ( dev-python/requests )
+ media-sound/mpd
+"
+
+pkg_setup() {
+ enewuser "${PN}"
+ enewgroup "${PN}"
+}
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Consider installing media-sound/sc2mpd. If upmpdcli"
+ einfo "detects sc2mpd at run-time, capabilities are added"
+ einfo "including internet radio support. See upstream docs"
+ einfo "for more information."
+}