blob: 2b93dd4e3a680e3d809be4965204cd601e85edec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
pkgname=plex-media-player-standalone-service
pkgver=1.0
pkgrel=7
pkgdesc="Systemd service and user to run PMP in stand-alone mode"
arch=('x86_64' 'armv7h')
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"
"plex-media-player."{sysusers,tmpfiles})
sha256sums=('a231685b9eed6ccfb0eefcf40b89b823ff8d33954c4daa2d68ed386ac73e172b'
'SKIP'
'b0fbffc7a8823b0b543dba8cb6d2ad4aa0ef3ec066753de1455f891bee32937d'
'fb034bf0b0900eaf0de1cc3593c89d8ebb6ebdd171f4b074322fb693b8d5c8f7')
validpgpkeys=('0C13DFCDC33937FCF36BEF459062A1BF982A2B64')
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 -Dm644 "${srcdir}/plex-media-player.sysusers" "${pkgdir}/usr/lib/sysusers.d/plex-media-player.conf"
install -Dm644 "${srcdir}/plex-media-player.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/plex-media-player.conf"
}
|