summaryrefslogtreecommitdiff
path: root/community/plex-home-theater/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/plex-home-theater/PKGBUILD')
-rwxr-xr-xcommunity/plex-home-theater/PKGBUILD33
1 files changed, 27 insertions, 6 deletions
diff --git a/community/plex-home-theater/PKGBUILD b/community/plex-home-theater/PKGBUILD
index 32d4635e9..6f5996768 100755
--- a/community/plex-home-theater/PKGBUILD
+++ b/community/plex-home-theater/PKGBUILD
@@ -1,23 +1,31 @@
-# $Id: PKGBUILD 108338 2014-03-27 00:27:19Z alucryd $
+# $Id: PKGBUILD 113395 2014-06-21 10:43:05Z alucryd $
# Maintainer: Maxime Gauduin <alucryd@gmail.com>
# Contributor: Daniel Wallace <daniel.wallace@gatech.edu>
pkgname=plex-home-theater
-pkgver=1.0.13
+pkgver=1.1.4
pkgrel=1
pkgdesc='Plex Home Theater'
arch=('i686' 'x86_64')
url='http://www.plexapp.com/'
license=('GPL2')
-depends=('boost-libs' 'curl' 'fontconfig' 'glew' 'java-runtime' 'lame' 'libass' 'libcdio' 'libjpeg-turbo' 'libmad' 'libmicrohttpd' 'libmodplug' 'libmpeg2' 'libsamplerate' 'libssh' 'libusb-compat' 'libva' 'libxrandr' 'lzo2' 'mesa' 'rtmpdump' 'sdl_image' 'sdl_mixer' 'smbclient' 'taglib' 'tinyxml' 'yajl')
-makedepends=('boost' 'cmake' 'doxygen' 'ftgl' 'java-environment' 'libcec' 'libplist' 'libshairport' 'nasm' 'swig' 'unzip' 'zip')
+depends=('boost-libs' 'curl' 'fontconfig' 'glew' 'lame' 'libass' 'libcdio'
+ 'libjpeg-turbo' 'libmad' 'libmicrohttpd' 'libmodplug' 'libmpeg2'
+ 'libsamplerate' 'libssh' 'libusb-compat' 'libva' 'libxrandr' 'lzo2'
+ 'mesa' 'rtmpdump' 'sdl_image' 'sdl_mixer' 'smbclient' 'taglib'
+ 'tinyxml' 'yajl')
+makedepends=('boost' 'cmake' 'doxygen' 'ftgl' 'java-runtime' 'libcec'
+ 'libplist' 'libshairport' 'nasm' 'swig' 'unzip' 'zip')
optdepends=('libplist: AirPlay support'
'libshairport: AirPlay support'
'libcec: Pulse-Eight USB-CEC adapter support'
'pulseaudio: PulseAudio support')
+install="${pkgname}.install"
source=("https://github.com/plexinc/plex-home-theater-public/archive/pht-v${pkgver}.tar.gz"
+ 'plexhometheater.service'
'plexhometheater.sh')
-sha256sums=('6a50fe804cfa194a8b694a5c5a8a462610db582fc4528d6a7db597477a72a6fa'
+sha256sums=('1f3be5bb9a09b05e624a0ca010c673436b2f1cdcf8dff7c94a030235af340fbb'
+ 'bca8cd5aa13f469f93dd4e9868c0b5050395ca32f28b19852e5830441b67e1be'
'c551d8f50342dcfede5a11e1bae2c18b25d44b89a5a29863e5809d45ef365702')
build() {
@@ -28,7 +36,12 @@ build() {
fi
mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/opt/plexhometheater' -DCMAKE_C_FLAGS="$CMAKE_C_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" -DENABLE_{AUTOUPDATE,DUMP_SYMBOLS}='FALSE' -DENABLE_PYTHON='TRUE' -DPYTHON_EXEC='/usr/bin/python2' -DUSE_INTERNAL_FFMPEG='TRUE' -DCREATE_BUNDLE='FALSE'
+ cmake .. -DCMAKE_INSTALL_PREFIX='/opt/plexhometheater' \
+ -DCMAKE_C_FLAGS="$CMAKE_C_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
+ -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
+ -DENABLE_{AUTOUPDATE,DUMP_SYMBOLS}='FALSE' -DENABLE_PYTHON='TRUE' \
+ -DPYTHON_EXEC='/usr/bin/python2' -DUSE_INTERNAL_FFMPEG='TRUE' \
+ -DCREATE_BUNDLE='FALSE'
make
}
@@ -41,6 +54,14 @@ package() {
install -m 755 "${srcdir}"/plexhometheater.sh "${pkgdir}"/usr/bin/
install -m 644 ../plex/Resources/plexhometheater.desktop "${pkgdir}"/usr/share/applications/
install -m 644 ../plex/Resources/plex-icon-256.png "${pkgdir}"/usr/share/pixmaps/plexhometheater.png
+
+ # Systemd
+ install -dm 755 "${pkgdir}"/usr/lib/systemd/system
+ install -m 644 ../../plexhometheater.service "${pkgdir}"/usr/lib/systemd/system/
+
+ # Plex user home
+ install -dm 700 "${pkgdir}"/var/lib/plex
+ chown 421:421 "${pkgdir}"/var/lib/plex
}
# vim: ts=2 sw=2 et: