blob: f5e11a1f98db60c0d639f78f01ecd98cc6130177 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Rob Sletten <rsletten@gmail.com>
# Contributor: Tom Moore <t.moore01@gmail.com>
# Contributor: monty <linksoft@gmx.de>
# Contributor: Jon Wiersma <archaur@jonw.org>
# Contributor: Arthur <arthur.darcet@m4x.org>
# Contributor: Praekon <praekon@googlemail.com>
pkgname=plex-media-server
pkgver=0.9.12.4.1192
_pkgsum=9a47d21
pkgrel=2
pkgdesc='Plex Media Server'
arch=('arm' 'armv7h' 'i686' 'x86_64')
url='https://plex.tv/'
license=('custom')
depends=('systemd' 'runit-scripts>=8.3-9')
makedepends=('prelink')
replaces=('plexmediaserver')
conflicts=('plexmediaserver' 'plexmediaserver-plexpass')
backup=('etc/conf.d/plexmediaserver')
install='plex-media-server.install'
source=('plexmediaserver.conf.d'
'plexmediaserver.service'
'terms.txt')
source_arm=("https://downloads.plex.tv/plex-media-server/${pkgver}-${_pkgsum}/PlexMediaServer-${pkgver}-${_pkgsum}-arm.spk")
source_armv7h=("https://downloads.plex.tv/plex-media-server/${pkgver}-${_pkgsum}/PlexMediaServer-${pkgver}-${_pkgsum}-arm7.spk")
source_i686=("https://downloads.plex.tv/plex-media-server/${pkgver}-${_pkgsum}/plexmediaserver-${pkgver}-${_pkgsum}.i386.rpm")
source_x86_64=("https://downloads.plex.tv/plex-media-server/${pkgver}-${_pkgsum}/plexmediaserver-${pkgver}-${_pkgsum}.x86_64.rpm")
prepare() {
if [[ $CARCH =~ arm* ]]; then
mkdir -p usr/lib/plexmediaserver
tar -xf package.tgz -C usr/lib/plexmediaserver/
fi
#Fix for SELinux and Grsecurity
execstack -c usr/lib/plexmediaserver/libgnsdk_dsp.so*
}
package() {
install -dm 755 "${pkgdir}"/{opt,etc/conf.d,usr/lib/systemd/system}
cp -dr --no-preserve='ownership' usr/lib/plexmediaserver "${pkgdir}"/opt/
install -m 644 plexmediaserver.service "${pkgdir}"/usr/lib/systemd/system/
install -m 644 plexmediaserver.conf.d "${pkgdir}"/etc/conf.d/plexmediaserver
# install -dm 755 "${pkgdir}"/data/storage/disk0/media/plex
# chown 421:421 -R "${pkgdir}"/data/storage/disk0/media/plex
install -dm 755 "${pkgdir}"/usr/share/licenses/plex-media-server
install -m 644 terms.txt "${pkgdir}"/usr/share/licenses/plex-media-server/
}
# vim: ts=2 sw=2 et:
md5sums=('b67fd10314ab756169ec963f710cb9e3'
'34268b981e3b8c833a0e2270429232a6'
'bd703bc750b989a27edd590eb8c8e9d7')
md5sums_arm=('53b2d858284dfe75610b9ec08162198e')
md5sums_armv7h=('630780e6b18a5fb67ab4a26ebac2a4ec')
md5sums_i686=('b10dc378e66cd8cff5cbfdf6ad0ae540')
md5sums_x86_64=('0426a8a700dd38887c978beca6e45580')
|