Created
December 23, 2015 20:13
-
-
Save 1davidmichael/8e30ef4a7bb17a124408 to your computer and use it in GitHub Desktop.
plex-media-server 0.9.14.6.1620-e0b7243
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maxime Gauduin <[email protected]> | |
# Contributor: Rob Sletten <[email protected]> | |
# Contributor: Tom Moore <[email protected]> | |
# Contributor: monty <[email protected]> | |
# Contributor: Jon Wiersma <[email protected]> | |
# Contributor: Arthur <[email protected]> | |
# Contributor: Praekon <[email protected]> | |
pkgname=plex-media-server | |
pkgver=0.9.14.6.1620 | |
_pkgsum=e0b7243 | |
pkgrel=1 | |
pkgdesc='Plex Media Server' | |
arch=('arm' 'armv7h' 'i686' 'x86_64') | |
url='https://plex.tv/' | |
license=('custom') | |
depends=('systemd') | |
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") | |
sha256sums=('7ab1ee8da9012d257b7f473fb79d76b201ca592cbe3722f977a43b58bfad180e' | |
'9da45cc3951ae03086ec663e6273c2de0183495fd15dc34ddd9aa100346d4d3a' | |
'7bb97271eb2dc5d1dcb95f9763f505970d234df17f1b8d79b467b9020257915a') | |
sha256sums_arm=('ac2d50558c383a3dac5ab441db38c104200df5b3a8c6c02558eeb76ff2cb2fd2') | |
sha256sums_armv7h=('ea95ed91f307dea0785883ec15817cfa3d997ef643eaec73dbf037a9896abf88') | |
sha256sums_i686=('cb23acb66fa8521d4a3d63677699029f4c1bf13cd7c3837527cf293680861b2a') | |
sha256sums_x86_64=('21ced1dcea4f4ca977b47208037f8a189f5e45686e55b0b2de57c96dbb17282f') | |
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}"/var/lib/plex | |
chown 421:421 -R "${pkgdir}"/var/lib/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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment