media-sound/mpd-mpris - 0.4.3 (guru)

Search

Install

Install this version:

emerge -a =media-sound/mpd-mpris-0.4.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-sound/mpd-mpris-0.4.3

Or alternatively:

emerge --autounmask-write -a =media-sound/mpd-mpris-0.4.3

Package Information

Description:
An implementation of the MPRIS protocol for MPD.
Homepage:
https://github.com/natsukagami/mpd-mpris
License:
MIT BSD-2

Ebuild Details

Version EAPI Keywords Slot
0.4.3 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop go-module systemd xdg

DESCRIPTION="An implementation of the MPRIS protocol for MPD."
HOMEPAGE="https://github.com/natsukagami/mpd-mpris"
SRC_URI="https://github.com/natsukagami/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/pastalian/distfiles/releases/download/${P}/${P}-deps.tar.xz"

LICENSE="MIT BSD-2"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="media-sound/mpd"

src_prepare() {
	default
	sed -i "s|/usr/local/bin|${EPREFIX}/usr/bin|" services/mpd-mpris || die
}

src_compile() {
	ego build -o "${PN}" cmd/mpd-mpris/*.go
}

src_install() {
	einstalldocs

	dobin "${PN}"
	domenu mpd-mpris.desktop
	systemd_douserunit services/mpd-mpris.service
	doinitd services/mpd-mpris
}

Inherited Eclasses

xdg

Dependencies

RDEPEND

media-sound/mpd

Manifest for 0.4.3

Type File Size Source URLs
DIST mpd-mpris-0.4.3-deps.tar.xz 229064 bytes https://github.com/pastalian/distfiles/releases/download/mpd-mpris-0.4.3/mpd-mpris-0.4.3-deps.tar.xz
DIST mpd-mpris-0.4.3.tar.gz 19193 bytes https://github.com/natsukagami/mpd-mpris/archive/v0.4.3.tar.gz