# Maintainer: Tom Moore # Contributor: Maxime Gauduin # Contributor: Rob Sletten # Contributor: monty # Contributor: Jon Wiersma # Contributor: Arthur # Contributor: Praekon pkgname=plex-media-server pkgver=1.7.5.4035 _pkgsum=313f93718 pkgrel=1 pkgdesc='Plex Media Server' arch=('armv7h' 'i686' 'x86_64') url='https://plex.tv/' license=('custom') depends=('systemd') makedepends_i686=('prelink') makedepends_x86_64=('prelink') provides=('plex-media-server') conflicts=('plex-media-server-plexpass') backup=('etc/conf.d/plexmediaserver') install='plex-media-server.install' source=('plexmediaserver.conf.d' 'plexmediaserver.service' 'plex.sysusers' 'plexmediascanner.sh' 'terms.txt') 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() { 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() { 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 644 "$srcdir/plex.sysusers" "$pkgdir/usr/lib/sysusers.d/plex.conf" install -m 755 -D plexmediascanner.sh "${pkgdir}"/usr/LH/bin/plexmediascanner.sh install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname} install -m 644 terms.txt "${pkgdir}"/usr/share/licenses/${pkgname}/ } # vim: ts=2 sw=2 et: md5sums=('dfd6778f5c0d3d64c2c3a71dca02b7cc' '3f39ee0e8b1ebb1c7ca714f67fa88641' '97241861f2c0b7c82d1945a6c5de8e35' '506ec15815bba749a743780edd2323c8' 'bd703bc750b989a27edd590eb8c8e9d7') md5sums_armv7h=('68aaa383d500b5a9e5e8c8e00dbfa0f8') md5sums_i686=('48882087386de79d09d222bc49211248') md5sums_x86_64=('860a2b538b83333f7107081a0805a623')