chromium-widevine: update to 49.0.2623.110
chromium-widevine: fix it not working correctly & redo the INSTALL file
This commit is contained in:
parent
eb36bffcbb
commit
270c8e8486
3 changed files with 31 additions and 56 deletions
|
@ -1,34 +1,29 @@
|
||||||
#
|
# INSTALL
|
||||||
# This script will install the actual plugin, advise the user to read the
|
DISTFILE="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
|
||||||
# license for Chrome and to re-login to have environment variables set
|
BUILD_DIR="./var/tmp/$PKGNAME.build"
|
||||||
# properly.
|
case "$ACTION" in
|
||||||
#
|
pre)
|
||||||
|
# Actions to execute before the package files are unpacked.
|
||||||
BUILD_DIR="./var/tmp/${PKGNAME}.build"
|
mkdir -p $BUILD_DIR
|
||||||
|
xbps-uhelper fetch "${DISTFILE}>$BUILD_DIR/$PKGNAME.deb"
|
||||||
case "${ACTION}" in
|
;;
|
||||||
post)
|
post)
|
||||||
. usr/lib/${PKGNAME}/${PKGNAME}-vars.sh
|
# Things that have to happen no matter what
|
||||||
|
ar x "$BUILD_DIR/$PKGNAME.deb"
|
||||||
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
|
tar xf data.tar.xz
|
||||||
) || {
|
|
||||||
echo Error while extracting;
|
|
||||||
rm -r $BUILD_DIR;
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
mv $BUILD_DIR/opt/google/chrome/libwidevinecdm.so usr/lib/${PKGNAME}
|
mv $BUILD_DIR/opt/google/chrome/libwidevinecdm.so usr/lib/${PKGNAME}
|
||||||
mv $BUILD_DIR/opt/google/chrome/libwidevinecdmadapter.so usr/lib/${PKGNAME}
|
mv $BUILD_DIR/opt/google/chrome/libwidevinecdmadapter.so usr/lib/${PKGNAME}
|
||||||
ln -s /usr/lib/${PKGNAME}/libwidevinecdm.so usr/lib/chromium
|
|
||||||
ln -s /usr/lib/${PKGNAME}/libwidevinecdmadapter.so usr/lib/chromium
|
if [ "$UPDATE" = "yes" ]; then
|
||||||
|
# actions to execute if package is being updated.
|
||||||
|
...
|
||||||
|
else
|
||||||
|
# actions to execute if package is being installed.
|
||||||
|
ln -s usr/lib/$PKGNAME/libwidevinecdm.so usr/lib/chromium
|
||||||
|
ln -s usr/lib/$PKGNAME/libwidevinecdmadapter.so usr/lib/chromium
|
||||||
|
fi
|
||||||
rm -r $BUILD_DIR
|
rm -r $BUILD_DIR
|
||||||
|
chmod 775 usr/lib/$PKGNAME/libwidevinecdm.so
|
||||||
|
chmod 775 usr/lib/$PKGNAME/libwidevinecdmadapter.so
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
export CHROME_URL="%CHROME_URL%" CHROME_CHECKSUM="%CHROME_CHECKSUM%"
|
|
|
@ -1,43 +1,24 @@
|
||||||
# Template file for 'chromium-widevine'
|
# Template file for 'chromium-widevine'
|
||||||
_chromeVersion="48.0.2564.116"
|
_chromeVersion="current"
|
||||||
_chromeRevision="1"
|
|
||||||
_channel="stable"
|
_channel="stable"
|
||||||
_baseUrl="http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable"
|
|
||||||
|
|
||||||
pkgname=chromium-widevine
|
pkgname=chromium-widevine
|
||||||
version=${_chromeVersion}
|
version=49.0.2623.110
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="A browser plugin designed for the viewing of premium video content"
|
short_desc="A browser plugin designed for the viewing of premium video content"
|
||||||
maintainer="Benjamin Hoffmeyer <hoffmeyer25@gmail.com>"
|
maintainer="Benjamin Hoffmeyer <hoffmeyer25@gmail.com>"
|
||||||
homepage="http://www.google.com/chrome"
|
homepage="http://www.google.com/chrome"
|
||||||
license="chrome"
|
license="chrome"
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="x86_64"
|
||||||
depends="chromium binutils xz"
|
depends="chromium binutils xz"
|
||||||
repository=nonfree
|
repository=nonfree
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
|
distfiles="https://dl.google.com/linux/direct/google-chrome-${_channel}_${_chromeVersion}_amd64.deb"
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
checksum="232842e316e17c254de430562ebc057f057a96546e93ed146aa17a7853144db6"
|
||||||
x86_64)
|
|
||||||
_filename=google-chrome-${_channel}_${_chromeVersion}-${_chromeRevision}_amd64.deb
|
|
||||||
_chromeChecksum="201e3b32c9c3d647f9bc071b5fe9faa45e0f2ab52127380052f2338c5465d70c"
|
|
||||||
;;
|
|
||||||
i686)
|
|
||||||
_filename=google-chrome-${_channel}_${_chromeVersion}-${_chromeRevision}_i386.deb
|
|
||||||
_chromeChecksum="7401ad3698a28bf2b45e350fd2b941c44cb51dbb3f87b0e7dd1a2da72c42f594"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
_chromeUrl="${_baseUrl}/${_filename}"
|
|
||||||
distfiles="${_chromeUrl}"
|
|
||||||
checksum="$_chromeChecksum"
|
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
:
|
:
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
sed \
|
|
||||||
-e "s|%CHROME_URL%|${_chromeUrl}|" \
|
|
||||||
-e "s|%CHROME_CHECKSUM%|${_chromeChecksum}|" \
|
|
||||||
${FILESDIR}/chromium-widevine-vars.sh.in > chromium-widevine-vars.sh
|
|
||||||
vinstall chromium-widevine-vars.sh 644 usr/lib/$pkgname
|
|
||||||
vlicense ${FILESDIR}/LICENSE
|
vlicense ${FILESDIR}/LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue