JakeStanger / mpd-discord-rpc

Rust application which displays your currently playing song / album / artist from MPD in Discord using Rich Presence.
https://crates.io/crates/mpd-discord-rpc
MIT License
89 stars 17 forks source link

Specify target-dir in AUR PKGBUILD #40

Closed Serial-ATA closed 1 year ago

Serial-ATA commented 1 year ago

When using a global target-dir, the package step of the PKGBUILD fails:

==> Starting package()...
install: cannot stat '/home/serial/.cache/paru/clone/mpd-discord-rpc/src/mpd-discord-rpc/target/release/mpd-discord-rpc': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'mpd-discord-rpc-v1.6.0.r0.ee29533-1 (mpd-discord-rpc-git)':
error: packages failed to build: mpd-discord-rpc-v1.6.0.r0.ee29533-1 (mpd-discord-rpc-git)

The fix is to just specify the target-dir:

 build() {
     cd "$srcdir/mpd-discord-rpc"
-    cargo build --release --locked
+    cargo build --release --locked --target-dir target
 }
JakeStanger commented 1 year ago

Just released an update to the package, thanks for the fix :)