diff options
author | 0xGingi | 2023-08-24 17:08:33 -0400 |
---|---|---|
committer | 0xGingi | 2023-08-24 17:08:33 -0400 |
commit | 8accdec55c294fcbb0fd6acaee1e013e555ffb55 (patch) | |
tree | a27ed9ead7c81fe5e8ae65e59760d7e078cc8341 | |
parent | ab6b51506667651002734fdb9eb17449d1c429bc (diff) | |
download | aur-8accdec55c294fcbb0fd6acaee1e013e555ffb55.tar.gz |
Check if systemd service file exists
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = jellyfin-rpc-git pkgdesc = Displays the content you're currently watching on Discord pkgver = 0.14.4.r0.gfc25152 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Radiicall/jellyfin-rpc arch = x86_64 license = GPL3 @@ -1,7 +1,7 @@ # Maintainer: 0xGingi <0xgingi@0xgingi.com> pkgname=('jellyfin-rpc-git') pkgver=0.14.4.r0.gfc25152 -pkgrel=1 +pkgrel=2 pkgdesc="Displays the content you're currently watching on Discord" arch=('x86_64') url="https://github.com/Radiicall/jellyfin-rpc" @@ -45,7 +45,13 @@ package() { install -Dm0755 "target/release/jellyfin-rpc" -t "$pkgdir/usr/lib/jellyfin-rpc/" install -Dm0644 "example.json" -t "$pkgdir/usr/lib/jellyfin-rpc/" install -Dm0644 ./README.md "$pkgdir/usr/share/doc/jellyfin-rpc" + + FILE=/usr/lib/systemd/user/jellyfin-rpc.service + if [ -f "$FILE" ]; then + echo "Systemd Service File Detected" + else install -Dm0644 "scripts/jellyfin-rpc.service" -t "$pkgdir/usr/lib/systemd/user/" + fi echo echo |