Package Details: mpd-discord-rpc-git v1.2.0.r1.g31bf606-1

Git Clone URL: (read-only, click to copy)
Package Base: mpd-discord-rpc
Description: Displays your currently playing song / album / artist from MPD in Discord using Rich Presence.
Upstream URL: None
Keywords: discord mpd rpc rust
Licenses: MIT
Submitter: JakeStanger
Maintainer: JakeStanger
Last Packager: JakeStanger
Votes: 0
Popularity: 0.000000
First Submitted: 2020-02-15 14:03
Last Updated: 2020-10-14 08:02

Latest Comments

JakeStanger commented on 2020-10-11 17:15

Added, cheers!

gmes78 commented on 2020-10-11 16:51

One more thing, you should add a pkgver function so that the version number is adjusted automatically:

diff --git a/PKGBUILD b/PKGBUILD
index 474d6ab..0b52921 100644
@@ -1,6 +1,6 @@
 # Maintainer: Jake Stanger <>
 makedepends=('rust' 'cargo')
 arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@@ -10,4 +10,9 @@ source=('git+')

+pkgver() {
+    cd "$srcdir/mpd-discord-rpc"
+    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 build() {
     cd "$srcdir/mpd-discord-rpc"

JakeStanger commented on 2020-10-11 16:16

@gmes78 Thank you for that! Updated accordingly, and I'll update the README to reflect the name change.

gmes78 commented on 2020-10-11 15:48

Here's a patch to fix the build failure caused by using cargo install:

diff --git a/PKGBUILD b/PKGBUILD
index 33a716e..5e95628 100644
@@ -6,12 +6,14 @@ makedepends=('rust' 'cargo')
 arch=('i686' 'x86_64' 'armv6h' 'armv7h')
 pkgdesc="Displays your currently playing song / album / artist from MPD in Discord using Rich Presence."

 build() {
-    return 0
+    cd "$srcdir/mpd-discord-rpc"
+    cargo build --release --locked

 package() {
-    cd $srcdir
-    cargo install --root="$pkgdir" --git=
+    install -Dm 755 "$srcdir/mpd-discord-rpc/target/release/mpd-discord-rpc" "$pkgdir/usr/bin/mpd-discord-rpc"

By the way, this package should have a -git suffix in its name, as it build from the latest git commit. The non -git packages are supposed to install versioned releases.