summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4cc3f2c43cb..bbd92e95fee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,22 +2,28 @@
pkgname=plex-media-player-standalone-service
pkgver=1.0
-pkgrel=2
+pkgrel=3
pkgdesc="Systemd service and user to run PMP in stand-alone mode"
-arch=('x86_64' 'i686')
+arch=('x86_64')
url="https://github.com/hv15/plex-media-player-standalone-service"
license=('GPL')
depends=('systemd' 'xorg-server' 'xorg-xinit' 'plex-media-player' 'polkit')
install="${pkgname}.install"
source=("https://github.com/hv15/${pkgname}/archive/${pkgver}.tar.gz"
- "https://github.com/hv15/${pkgname}/releases/download/${pkgver}/${pkgver}.tar.gz.sig")
+ "https://github.com/hv15/${pkgname}/releases/download/${pkgver}/${pkgver}.tar.gz.sig"
+ "plex-media-player.sysusers")
sha256sums=('a231685b9eed6ccfb0eefcf40b89b823ff8d33954c4daa2d68ed386ac73e172b'
- 'SKIP')
+ 'SKIP'
+ 'b0fbffc7a8823b0b543dba8cb6d2ad4aa0ef3ec066753de1455f891bee32937d')
validgpgkeys=('0x9062A1BF982A2B64')
+prepare() {
+ # we change ther user/group of the service file to pplex.
+ sed -i 's/\(User\|Group\) = plex/\1 = pplex/' "${srcdir}/${pkgname}-${pkgver}/plexmediaplayer.service"
+}
+
package() {
- install -Dm644 "$srcdir/$pkgname-$pkgver/plexmediaplayer.service" \
- "$pkgdir/usr/lib/systemd/system/plexmediaplayer.service"
- install -dm 700 "$pkgdir"/var/lib/plexmediaplayer
- chown 1420:1420 "$pkgdir"/var/lib/plexmediaplayer
+ install -Dm644 "${srcdir}/${pkgname}-${pkgver}/plexmediaplayer.service" \
+ "${pkgdir}/usr/lib/systemd/system/plexmediaplayer.service"
+ install -Dm644 "${srcdir}/plex-media-player.sysusers" "${pkgdir}/usr/lib/sysusers.d/plex-media-player.conf"
}