net-www/inox-widevine-plugin: initial import

This commit is contained in:
Julian Ospald 2016-02-19 11:51:52 +01:00
parent 4e10ad3778
commit 8948e1f962
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,47 @@
# Copyright 2011 Kim Højgaard-Hansen <kimrhh@exherbo.org>
# Copyright 2011 Elias Pipping <pipping@exherbo.org>
# 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
}

View File

@ -0,0 +1,18 @@
# Copyright 2011 Kim Højgaard-Hansen <kimrhh@exherbo.org>
# Copyright 2011 Elias Pipping <pipping@exherbo.org>
# 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/%_*}]
"