From 8948e1f962380ce2dd28a450ad990ba4d8cd692f Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 19 Feb 2016 11:51:52 +0100 Subject: [PATCH] net-www/inox-widevine-plugin: initial import --- .../net-www/exlibs/inox-widevine-plugin.exlib | 47 +++++++++++++++++++ ...-widevine-plugin-48.0.2564.103_1.exheres-0 | 18 +++++++ 2 files changed, 65 insertions(+) create mode 100644 packages/net-www/exlibs/inox-widevine-plugin.exlib create mode 100644 packages/net-www/inox-widevine-plugin/inox-widevine-plugin-48.0.2564.103_1.exheres-0 diff --git a/packages/net-www/exlibs/inox-widevine-plugin.exlib b/packages/net-www/exlibs/inox-widevine-plugin.exlib new file mode 100644 index 00000000..748ceacd --- /dev/null +++ b/packages/net-www/exlibs/inox-widevine-plugin.exlib @@ -0,0 +1,47 @@ +# Copyright 2011 Kim Højgaard-Hansen +# Copyright 2011 Elias Pipping +# Distributed under the terms of the GNU General Public License v2 + +export_exlib_phases pkg_setup src_unpack src_install + +CHROMIUM_CHANNEL=stable +CHROMIUM_CHANNEL=${CHROMIUM_CHANNEL%-widevine-plugin} +MY_PV=${PV/_/-} + +SUMMARY="Widevine Content Decryption Module plugin for Chromium" +DESCRIPTION=" +Enables Widevine licenses for playback of HTML audio/video content. +" +HOMEPAGE="http://blog.chromium.org" + +LICENCES="google-chrome" +SLOT="0" +MYOPTIONS=" + platform: + amd64 + x86 +" + +RESTRICT="strip" + +WORK=${WORKBASE} + +inox-widevine-plugin_pkg_setup() { + exdirectory --allow /opt +} + +inox-widevine-plugin_src_unpack() { + default + + if [[ ${CHROMIUM_CHANNEL} != "stable" ]]; then + edo tar xf data.tar.xz ./opt/google/chrome-${CHROMIUM_CHANNEL} + else + edo tar xf data.tar.xz ./opt/google/chrome + fi +} + +inox-widevine-plugin_src_install() { + insinto /opt/inox + doins "${WORKBASE}"/opt/google/chrome*/libwidevinecdm.so +} + diff --git a/packages/net-www/inox-widevine-plugin/inox-widevine-plugin-48.0.2564.103_1.exheres-0 b/packages/net-www/inox-widevine-plugin/inox-widevine-plugin-48.0.2564.103_1.exheres-0 new file mode 100644 index 00000000..6e16512d --- /dev/null +++ b/packages/net-www/inox-widevine-plugin/inox-widevine-plugin-48.0.2564.103_1.exheres-0 @@ -0,0 +1,18 @@ +# Copyright 2011 Kim Højgaard-Hansen +# Copyright 2011 Elias Pipping +# Distributed under the terms of the GNU General Public License v2 + +require inox-widevine-plugin + +DOWNLOADS=" + platform:x86? ( http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${MY_PV}_i386.deb ) + platform:amd64? ( http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${MY_PV}_amd64.deb ) +" + +PLATFORMS="~amd64 ~x86" + +DEPENDENCIES+=" + run: + net-www/inox[~${PV/%_*}] +" +