Package Details: mpd-discord-rpc 1.7.3-1

Git Clone URL: https://aur.archlinux.org/mpd-discord-rpc.git (read-only, click to copy)
Package Base: mpd-discord-rpc
Description: Displays metadata of currently playing song from MPD in Discord using Rich Presence
Upstream URL: https://github.com/JakeStanger/mpd-discord-rpc
Keywords: discord mpd rpc rust
Licenses: MIT
Submitter: JakeStanger
Maintainer: JakeStanger (xiota)
Last Packager: xiota
Votes: 3
Popularity: 0.001785
First Submitted: 2020-02-15 14:03 (UTC)
Last Updated: 2024-08-30 22:49 (UTC)

Latest Comments

« First ‹ Previous 1 2 3

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Jake Stanger <mail@jstanger.dev>
 pkgname=mpd-discord-rpc-git
-pkgver=1.1.3
-pkgrel=2
+pkgver=v1.1.2.r6.ge3ee9b2
+pkgrel=1
 makedepends=('rust' 'cargo')
 arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@@ -10,4 +10,9 @@ source=('git+https://github.com/JakeStanger/mpd-discord-rpc')
 md5sums=('SKIP')

+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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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."
 license=('MIT')
+source=('git+https://github.com/JakeStanger/mpd-discord-rpc')
+md5sums=('SKIP')

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

 package() {
-    cd $srcdir
-    cargo install --root="$pkgdir" --git=https://github.com/JakeStanger/mpd-discord-rpc
+    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.