From 0f48b82711ce42babdd816b75ea0065108fd481f Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 1 Mar 2016 20:47:46 +0000
Subject: plex-media-server: update to 0.9.15.6.1714

---
 abs/extra/plex-media-server/PKGBUILD | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/abs/extra/plex-media-server/PKGBUILD b/abs/extra/plex-media-server/PKGBUILD
index 0dc1d0e..c4b0c18 100644
--- a/abs/extra/plex-media-server/PKGBUILD
+++ b/abs/extra/plex-media-server/PKGBUILD
@@ -1,21 +1,22 @@
-# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+# Maintainer: Tom Moore <t.moore01@gmail.com>
+# Contributor: 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.15.2.1663
-_pkgsum=7efd046
+pkgver=0.9.15.6.1714
+_pkgsum=7be11e1
 pkgrel=1
 pkgdesc='Plex Media Server'
 arch=('x86_64')
 url='https://plex.tv/'
 license=('custom')
-depends=('systemd' 'runit-scripts>=8.3-9')
-makedepends=('prelink')
+depends=('systemd')
+makedepends_i686=('prelink')
+makedepends_x86_64=('prelink')
 replaces=('plexmediaserver')
 conflicts=('plexmediaserver' 'plexmediaserver-plexpass')
 backup=('etc/conf.d/plexmediaserver')
@@ -28,15 +29,18 @@ source=('plexmediaserver.conf.d'
 #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_arm=('77792714279505e8b3fda046f841d0ed0c9bcee181678ffff27c49bde9e43e27')
+#sha256sums_armv7h=('e23b3248cc599c8f99213e213df48edef0d44afd5ef1f32404ccd5c8ee84560c')
+#sha256sums_i686=('73cdaa48714c95d9cae7f8411f50b4632e0a6f425ded6bd681d0d5008dea9397')
 
 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*
+case "$CARCH" in
+  arm*) mkdir -p usr/lib/plexmediaserver && tar -zxf package.tgz -C usr/lib/plexmediaserver/;;
+        #Fix for SELinux and Grsecurity
+     *) execstack -c usr/lib/plexmediaserver/libgnsdk_dsp.so*;;
+esac
+
 }
 
 package() {
@@ -58,4 +62,4 @@ md5sums=('dfd6778f5c0d3d64c2c3a71dca02b7cc'
          '34268b981e3b8c833a0e2270429232a6'
          'bd703bc750b989a27edd590eb8c8e9d7'
          '506ec15815bba749a743780edd2323c8')
-md5sums_x86_64=('76451a35ff500d059b1d832f5263b00a')
+md5sums_x86_64=('223f20f7235e7540948197338482de56')
-- 
cgit v0.12

