2015-04-15 10:55:19 +00:00
|
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
|
|
# Contributor: Rob Sletten <rsletten@gmail.com>
|
|
|
|
# Contributor: Tom Moore <t.moore01@gmail.com>
|
|
|
|
# Contributor: monty <linksoft@gmx.de>
|
2013-08-14 09:12:34 +00:00
|
|
|
# Contributor: Jon Wiersma <archaur@jonw.org>
|
2015-04-15 10:55:19 +00:00
|
|
|
# Contributor: Arthur <arthur.darcet@m4x.org>
|
|
|
|
# Contributor: Praekon <praekon@googlemail.com>
|
2013-08-14 09:12:34 +00:00
|
|
|
|
2015-04-15 10:55:19 +00:00
|
|
|
#ALARM: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
|
|
|
# - Using Synology arm package as the base (added prepare() section)
|
|
|
|
# - fix permissions via .install file
|
2013-08-14 09:12:34 +00:00
|
|
|
|
2016-06-27 17:59:09 +00:00
|
|
|
buildarch=4
|
2014-12-06 17:14:49 +00:00
|
|
|
pkgname=plex-media-server
|
2017-09-26 08:50:02 +00:00
|
|
|
pkgver=1.9.2.4285
|
|
|
|
_pkgsum=9f65b88ae
|
2015-05-12 17:23:31 +00:00
|
|
|
pkgrel=1
|
2015-04-15 10:55:19 +00:00
|
|
|
pkgdesc='Plex Media Server'
|
2016-06-27 17:59:09 +00:00
|
|
|
arch=('armv7h')
|
2015-04-15 10:55:19 +00:00
|
|
|
url='https://plex.tv/'
|
|
|
|
license=('custom')
|
|
|
|
depends=('systemd')
|
2014-12-06 17:14:49 +00:00
|
|
|
replaces=('plexmediaserver')
|
|
|
|
conflicts=('plexmediaserver' 'plexmediaserver-plexpass')
|
2013-08-14 09:12:34 +00:00
|
|
|
backup=('etc/conf.d/plexmediaserver')
|
2015-04-15 10:55:19 +00:00
|
|
|
install='plex-media-server.install'
|
2017-02-05 05:16:15 +00:00
|
|
|
source=("https://downloads.plex.tv/plex-media-server/${pkgver}-${_pkgsum}/PlexMediaServer-${pkgver}-${_pkgsum}-arm7.spk"
|
|
|
|
'plexmediaserver.conf.d'
|
2014-12-06 17:31:54 +00:00
|
|
|
'plexmediaserver.service'
|
2015-04-15 10:55:19 +00:00
|
|
|
'terms.txt')
|
|
|
|
|
2017-09-26 08:50:02 +00:00
|
|
|
sha256sums=('9b837467bbf2722693fdc76d3335173920056cd157e3c4c9062eaaa801893b3f'
|
2017-02-05 05:16:15 +00:00
|
|
|
'7ab1ee8da9012d257b7f473fb79d76b201ca592cbe3722f977a43b58bfad180e'
|
2016-04-10 00:07:45 +00:00
|
|
|
'9da45cc3951ae03086ec663e6273c2de0183495fd15dc34ddd9aa100346d4d3a'
|
|
|
|
'7bb97271eb2dc5d1dcb95f9763f505970d234df17f1b8d79b467b9020257915a')
|
2017-02-05 05:16:15 +00:00
|
|
|
|
2015-04-15 10:55:19 +00:00
|
|
|
prepare() {
|
|
|
|
mkdir ${srcdir}/plexmediaserver
|
|
|
|
cd ${srcdir}/plexmediaserver
|
|
|
|
tar xzf ../package.tgz
|
2013-08-14 09:12:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-04-15 10:55:19 +00:00
|
|
|
install -dm 755 "${pkgdir}"/{opt,etc/conf.d,usr/lib/systemd/system}
|
|
|
|
cp -dr --no-preserve='ownership' 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}"/var/lib/plex
|
|
|
|
chown 421:421 -R "${pkgdir}"/var/lib/plex
|
2013-08-14 09:12:34 +00:00
|
|
|
|
2015-04-15 10:55:19 +00:00
|
|
|
install -dm 755 "${pkgdir}"/usr/share/licenses/plex-media-server
|
|
|
|
install -m 644 terms.txt "${pkgdir}"/usr/share/licenses/plex-media-server/
|
2013-08-14 09:12:34 +00:00
|
|
|
}
|