blob: 4b7ac14545820ba7e8d70050a77eaadd3133178c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop go-module multiprocessing 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/sevz17/go-deps/releases/download/${P}/${P}-deps.tar.xz"
LICENSE="MIT BSD-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="media-sound/mpd"
DEPEND="${RDEPEND}"
src_compile() {
ego build -v -x -p "$(makeopts_jobs)" -o "${PN}" cmd/mpd-mpris/*.go
}
src_install() {
einstalldocs
dobin "${PN}"
domenu mpd-mpris.desktop
systemd_douserunit mpd-mpris.service
}
|