Merge pull request #2781 from TheDoctorsLife/master
New package: chromium-widevine-1.0.0.0
This commit is contained in:
commit
1b504d1299
|
@ -0,0 +1,32 @@
|
|||
#
|
||||
# This script will install the actual plugin, advise the user to read the
|
||||
# license for Chrome and to re-login to have environment variables set
|
||||
# properly.
|
||||
#
|
||||
|
||||
BUILD_DIR="./var/tmp/${PKGNAME}.build"
|
||||
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
. usr/lib/chromium-widevine/chromium-widevine-vars.sh
|
||||
|
||||
mkdir -p "$BUILD_DIR"
|
||||
(
|
||||
cd "$BUILD_DIR"
|
||||
xbps-uhelper fetch "${CHROME_URL}>$PKGNAME.deb"
|
||||
echo "$CHROME_CHECKSUM $PKGNAME.deb" > chksum
|
||||
sha256sum -c chksum || exit 1
|
||||
|
||||
ar x "$PKGNAME.deb"
|
||||
tar xf data.tar.xz
|
||||
) || {
|
||||
echo Error while extracting;
|
||||
rm -r $BUILD_DIR;
|
||||
exit 1;
|
||||
}
|
||||
mv $BUILD_DIR/opt/google/chrome/{libwidevinecdm.so,libwidevinecdmadapter.so} "usr/lib/chromium-widevine"
|
||||
ln -s "usr/lib/chromuim-widevine/{libwidevinecdm.so,libwidevinecdmadapter.so}" "usr/lib/chromium"
|
||||
rm -r $BUILD_DIR
|
||||
;;
|
||||
esac
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
- The Widevine package is licensed software.
|
||||
|
||||
You MUST read and agree to the license stored in
|
||||
/usr/share/licenses/chromium-widevine/license.html
|
||||
before using it.
|
||||
|
||||
- Please re-login to update CHROME_FLAGS or re-source
|
||||
/etc/profile:
|
||||
|
||||
$ source /etc/profile
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
case "$ACTION" in
|
||||
pre)
|
||||
rm usr/lib/chromium/{libwidevinecdm.so,libwidevinecdmadapter.so}
|
||||
rm usr/lib/chromium-widevine/{libwidevinecdm.so,libwidevinecdmadapter.so}
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1 @@
|
|||
see http://www.google.com/chrome/intl/en/eula_text.html
|
|
@ -0,0 +1 @@
|
|||
export CHROME_URL="%CHROME_URL%" CHROME_CHECKSUM="%CHROME_CHECKSUM%"
|
|
@ -0,0 +1,53 @@
|
|||
# Template file for 'chromium-widevine'
|
||||
pkgname=chromium-widevine
|
||||
version=1.0.0.0
|
||||
revision=1
|
||||
_chromeVersion=46.0.2490.71-1
|
||||
_channel='stable'
|
||||
_baseUrl='http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable'
|
||||
revision=1
|
||||
short_desc="A browser plugin designed for the viewing of premium video content"
|
||||
maintainer="Benjamin Hoffmeyer <hoffmeyer25@gmail.com>"
|
||||
homepage="http://www.google.com/chrome"
|
||||
license="chrome"
|
||||
lib32disabled=yes
|
||||
repository=nonfree
|
||||
only_for_archs="i686 x86_64"
|
||||
depends="chromium binutils xz"
|
||||
create_wrksrc=yes
|
||||
|
||||
case "${XBPS_TARGET_MACHINE}" in
|
||||
x86_64)
|
||||
_filename=google-chrome-${_channel}_${_chromeVersion}_amd64.deb
|
||||
_chromeChecksum="d70e55812164bf4f35f629af302ee53fc771ee4e00ffd26205e6541f3b6c8a96"
|
||||
;;
|
||||
i686)
|
||||
_filename=google-chrome-${_channel}_${_chromeVersion}_i386.deb
|
||||
_chromeChecksum="4e931cedefb37ce905c51075c4a328202bfc97ec06eae37ff3b3fe26c6632aec"
|
||||
;;
|
||||
esac
|
||||
_chromeUrl="${_baseUrl}/${_filename}"
|
||||
distfiles="${_chromeUrl}"
|
||||
checksum="$_chromeChecksum"
|
||||
|
||||
skip_extraction="$_filename"
|
||||
|
||||
do_fetch() {
|
||||
mkdir -p $wrksrc
|
||||
cd $wrksrc
|
||||
xbps-uhelper fetch $distfiles
|
||||
echo "$checksum $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
|
||||
}
|
||||
do_extract() {
|
||||
:
|
||||
}
|
||||
do_build() {
|
||||
sed \
|
||||
-e "s|%CHROME_URL%|${_chromeUrl}|" \
|
||||
-e "s|%CHROME_CHECKSUM%|${_chromeChecksum}|" \
|
||||
${FILESDIR}/chromium-widevine-vars.sh.in > chromium-widevine-vars.sh
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vlicense ${FILESDIR}/LICENSE
|
||||
}
|
Loading…
Reference in New Issue