Skip to content

Commit 485b7bf

Browse files
committed
user/mpd-mpris: new package
1 parent c9d185f commit 485b7bf

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type = process
2+
command = /usr/bin/mpd-mpris -no-instance
3+
depends-on = mpd
4+
restart = yes
5+
smooth-recovery = yes

user/mpd-mpris/template.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pkgname = "mpd-mpris"
2+
pkgver = "0.4.3"
3+
pkgrel = 0
4+
build_style = "go"
5+
make_build_args = ["./cmd/mpd-mpris"]
6+
hostmakedepends = [
7+
"dinit-chimera",
8+
"go",
9+
"mpd"
10+
]
11+
depends = ["mpd"]
12+
pkgdesc = "MPRIS protocol implementation for MPD"
13+
license = "MIT"
14+
url = "https://github.com/natsukagami/mpd-mpris"
15+
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
16+
sha256 = "c8737299e6368b15635481508a8dc69448e442e550f7c3123e38f32431a1ae30"
17+
18+
19+
def install(self):
20+
self.install_bin(f"build/{pkgname}")
21+
self.install_license("LICENSE")
22+
self.install_service(self.files_path / "mpd-mpris.user")

0 commit comments

Comments
 (0)