diff options
Diffstat (limited to 'abs/extra/plex-media-server/PKGBUILD')
-rw-r--r-- | abs/extra/plex-media-server/PKGBUILD | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/abs/extra/plex-media-server/PKGBUILD b/abs/extra/plex-media-server/PKGBUILD new file mode 100644 index 0000000..42f7f3d --- /dev/null +++ b/abs/extra/plex-media-server/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Tom Moore <t.moore01@gmail.com> +# Contributor: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: Rob Sletten <rsletten@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.16.6.1993 +_pkgsum=5089475 +pkgrel=1 +pkgdesc='Plex Media Server' +arch=('x86_64') +url='https://plex.tv/' +license=('custom') +depends=('systemd') +makedepends_i686=('prelink') +makedepends_x86_64=('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' + 'plexmediascanner.sh') +#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_arm=('77792714279505e8b3fda046f841d0ed0c9bcee181678ffff27c49bde9e43e27') +#sha256sums_armv7h=('e23b3248cc599c8f99213e213df48edef0d44afd5ef1f32404ccd5c8ee84560c') +#sha256sums_i686=('73cdaa48714c95d9cae7f8411f50b4632e0a6f425ded6bd681d0d5008dea9397') + +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 -m 755 -D plexmediascanner.sh "${pkgdir}"/usr/LH/bin/plexmediascanner.sh + #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: +md5sums=('dfd6778f5c0d3d64c2c3a71dca02b7cc' + '34268b981e3b8c833a0e2270429232a6' + 'bd703bc750b989a27edd590eb8c8e9d7' + '506ec15815bba749a743780edd2323c8') +md5sums_x86_64=('20e6e297df95ab96dbb6172055ab7935') |