diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-11-25 19:19:06 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-11-25 19:19:06 (GMT) |
commit | 5a66b67c322a7ba523798cf60b8627e25aa34273 (patch) | |
tree | 4e90e65656269d6092e9910e8c16c5144a5b363d /abs/extra/plex-home-theater/PKGBUILD | |
parent | 4b2977c4685b18bed19cea1070a2ff8deb1a753a (diff) | |
download | linhes_pkgbuild-5a66b67c322a7ba523798cf60b8627e25aa34273.zip linhes_pkgbuild-5a66b67c322a7ba523798cf60b8627e25aa34273.tar.gz linhes_pkgbuild-5a66b67c322a7ba523798cf60b8627e25aa34273.tar.bz2 |
plex-home-theater: initial inclusion. refs #981
Diffstat (limited to 'abs/extra/plex-home-theater/PKGBUILD')
-rwxr-xr-x | abs/extra/plex-home-theater/PKGBUILD | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/abs/extra/plex-home-theater/PKGBUILD b/abs/extra/plex-home-theater/PKGBUILD new file mode 100755 index 0000000..42c7df2 --- /dev/null +++ b/abs/extra/plex-home-theater/PKGBUILD @@ -0,0 +1,77 @@ +# $Id$ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: Daniel Wallace <daniel.wallace@gatech.edu> + +pkgname=plex-home-theater +pkgver=1.2.2 +pkgrel=6 +pkgdesc='Plex Home Theater' +arch=('i686' 'x86_64') +url='http://www.plexapp.com/' +license=('GPL2') +depends=('boost-libs' 'curl' 'ffmpeg-compat' 'glew' 'libcdio' 'libmad' + 'libmicrohttpd' 'libmpeg2' 'libsamplerate' 'libssh' 'libusb-compat' + 'libvdpau' 'libxrandr' 'lzo' 'sdl_image' 'sdl_mixer' 'smbclient' + 'taglib' 'tinyxml' 'yajl') +makedepends=('boost' 'cmake' 'doxygen' 'java-environment' '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" + 'plex-ffmpeg-compat.patch' + 'plex-libcec-2.2.0.patch' + 'plex-lirc-socket.patch' + 'plexhometheater.sh' + 'plex_lib.conf') + +prepare() { + cd plex-home-theater-public-pht-v${pkgver} + + patch -Np1 -i ../plex-libcec-2.2.0.patch + patch -Np1 -i ../plex-lirc-socket.patch + patch -Np1 -i ../plex-ffmpeg-compat.patch +} + +build() { + cd plex-home-theater-public-pht-v${pkgver} + + if [[ -d build ]]; then + rm -rf build + fi + mkdir build && cd build + + cmake .. -DCMAKE_INSTALL_PREFIX='/usr' \ + -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='FALSE' \ + -DCREATE_BUNDLE='FALSE' + make +} + +package() { + cd plex-home-theater-public-pht-v${pkgver}/build + + make DESTDIR="${pkgdir}" install + install -dm 755 "${pkgdir}"/usr/{lib/plexhometheater,share/{applications,pixmaps}} + mv "${pkgdir}"/usr/bin/{system,xbmc-xrandr} "${pkgdir}"/usr/lib/plexhometheater/ + mv "${pkgdir}"/usr/share/XBMC "${pkgdir}"/usr/share/plexhometheater + 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 + + # LinHES stuff + #add in plex_lib.conf + install -D -m0744 ${srcdir}/plex_lib.conf ${pkgdir}/etc/gen_lib_xml.d/plex_lib.conf +} + +# vim: ts=2 sw=2 et: +md5sums=('10bc6dd7be91a33eba9b666c96f50a20' + '6704244166497db7fa6b3ddd43a0e53b' + '066484ad4949f96ddddaa8b1d4d709e1' + 'b96a1d70174d80d3f2272bdc5b48e4a3' + '8fae1350cc36f40ed65fbf96128a02d0' + '8735a4e7857bc85085482c4f8bcb1d01') |