Package Details: mpd-discord-rpc-git v1.5.0.r0.12d6259-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: 1
Popularity: 0.016782
First Submitted: 2020-02-15 14:03 (UTC)
Last Updated: 2022-06-16 21:34 (UTC)

Required by (0)

Sources (0)

Latest Comments

JakeStanger commented on 2022-03-11 14:53 (UTC)

Ah rats, how on earth did I do that copy/pasting. Fixed...

pbo commented on 2022-03-11 14:51 (UTC) (edited on 2022-03-11 14:52 (UTC) by pbo)

@JakeStanger: thanks now it's working.

JakeStanger commented on 2022-03-11 14:34 (UTC)

Thanks for reportng @pbo. The below didn't actually work for me (${_pkgname} didn't seem to ever get substituted), but I found the pkgversion was actually wrong. I've corrected it to v1.4.1.r0, which should be in sync with the pkgver output and stop that from happening now.

pbo commented on 2022-03-11 13:46 (UTC) (edited on 2022-03-11 14:22 (UTC) by pbo)

the current PKGBUILD keep upgrading and downgrading to v1.4.1.r0 and upgrading again to v1.4.1.r1 and so on...

JakeStanger commented on 2020-10-11 17:15 (UTC)

Added, cheers!

gmes78 commented on 2020-10-11 16:51 (UTC)

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 (UTC)

@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 (UTC)

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.