mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Contributor: Praekon <praekon@googlemail.com>
|
|
# Contributor: Arthur <arthur.darcet@m4x.org>
|
|
# Contributor: Jon Wiersma <archaur@jonw.org>
|
|
# Contributor: monty <linksoft [at] gmx [dot] de>
|
|
# Maintainer: Tom Moore <t.moore01 [at] gmail [dot] com>
|
|
|
|
#ALARM: moonman
|
|
# - Using Synology arm package as the base
|
|
# - changed start_pms contents for arm
|
|
|
|
buildarch=2
|
|
|
|
pkgname=plexmediaserver
|
|
pkgver=0.9.9.14.531
|
|
pkgrel=1
|
|
_subver=7eef8c6
|
|
pkgdesc="Plex Media Server for Linux"
|
|
url='http://www.plexapp.com'
|
|
arch=('arm')
|
|
license=('closed')
|
|
depends=('rsync' 'avahi')
|
|
backup=('etc/conf.d/plexmediaserver')
|
|
install='plexmediaserver.install'
|
|
|
|
source=("http://downloads.plexapp.com/plex-media-server/${pkgver}-${_subver}/PlexMediaServer-${pkgver}-${_subver}-arm.spk"
|
|
"${pkgname}.conf.d"
|
|
"${pkgname}.service"
|
|
"start_pms")
|
|
|
|
md5sums=('d282cd6e2cb4c27ec360f8efd9023c29'
|
|
'32cdd9f9de446f6646616a0077151726'
|
|
'6601ebe6607cfb7dda9f3d77c1d043a9'
|
|
'c4d158ae6f9a186e4553551d062febe3')
|
|
build() {
|
|
mkdir ${srcdir}/plex
|
|
cd ${srcdir}/plex
|
|
tar xzf ../package.tgz
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "${pkgdir}"/opt/plexmediaserver
|
|
mkdir -p "${pkgdir}"/usr/lib/systemd/system
|
|
cp -r ${srcdir}/plex/* "${pkgdir}"/opt/plexmediaserver/
|
|
|
|
install -Dm755 ${srcdir}/start_pms "${pkgdir}"/opt/plexmediaserver/
|
|
install -Dm644 ${srcdir}/plexmediaserver.conf.d "${pkgdir}"/etc/conf.d/plexmediaserver
|
|
install -Dm644 ${srcdir}/plexmediaserver.service "${pkgdir}"/usr/lib/systemd/system/plexmediaserver.service
|
|
}
|