From 6a8244cd37c67eb36562b9683ee28aefb15118f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 9 Sep 2020 22:22:52 +0700 Subject: [PATCH] chromium-widevine: fetch versioned tarball in INSTALL --- srcpkgs/chromium-widevine/INSTALL | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/chromium-widevine/INSTALL b/srcpkgs/chromium-widevine/INSTALL index 2bf5321f9a..ab6c56384f 100644 --- a/srcpkgs/chromium-widevine/INSTALL +++ b/srcpkgs/chromium-widevine/INSTALL @@ -1,5 +1,9 @@ # INSTALL -DISTFILE="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" + +checksum=2f60812b021f1a3f9551544b25ae76442433a0e56b622101e120e36d85a24339 +_baseUrl="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable" +_filename="google-chrome-stable_${VERSION%_*}-1_amd64.deb" +DISTFILE="${_baseUrl}/${_filename}" BUILD_DIR="$(mktemp -d ${TMPDIR:-/tmp}/$PKGNAME.XXXXXX)" case "$ACTION" in post) @@ -8,6 +12,10 @@ post) xbps-uhelper fetch "${DISTFILE}>$BUILD_DIR/$PKGNAME.deb" # Things that have to happen no matter what cd $BUILD_DIR + if [ "$(xbps-digest "$PKGNAME.deb")" != $checksum ]; then + echo "broken file: $_filename" + exit 1 + fi ar x $PKGNAME.deb tar xf data.tar.xz --wildcards './opt/google/chrome/WidevineCdm/' cd -