2024-02-24 17:18:53 -08:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
inherit toolchain-funcs
|
|
|
|
|
|
|
|
INSTALLER_SHA="7a3928fe1342fb07d96f61c2b094e3287588958b"
|
2024-09-24 20:05:42 -07:00
|
|
|
LACROS_VERSION="130.0.6723.0"
|
2024-02-24 17:18:53 -08:00
|
|
|
|
2024-02-24 17:22:46 -08:00
|
|
|
DESCRIPTION="Widevine CDM installer for arm64"
|
|
|
|
HOMEPAGE="https://github.com/AsahiLinux/widevine-installer"
|
2024-02-24 17:18:53 -08:00
|
|
|
SRC_URI="
|
2024-02-25 16:04:18 -08:00
|
|
|
https://github.com/AsahiLinux/widevine-installer/archive/${INSTALLER_SHA}.zip
|
|
|
|
https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/chromeos-lacros-arm64-squash-zstd-${LACROS_VERSION}
|
2024-02-24 17:18:53 -08:00
|
|
|
"
|
2024-02-25 16:18:29 -08:00
|
|
|
RESTRICT="bindist mirror strip"
|
2024-02-24 17:18:53 -08:00
|
|
|
LICENSE="MIT Widevine"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="arm64"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
www-client/chromium[widevine]
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
sys-fs/squashfs-tools[zstd]
|
|
|
|
"
|
|
|
|
|
2024-02-25 16:18:29 -08:00
|
|
|
# Nothing is built from source here.
|
|
|
|
QA_PREBUILT="*"
|
|
|
|
|
2024-02-24 17:18:53 -08:00
|
|
|
src_unpack() {
|
2024-02-25 16:04:18 -08:00
|
|
|
unpack "${INSTALLER_SHA}.zip"
|
2024-02-25 16:11:19 -08:00
|
|
|
mv "widevine-installer-${INSTALLER_SHA}" "widevine-${PV}" || die "Failed to rename widevine-installer"
|
|
|
|
cp "${DISTDIR}/chromeos-lacros-arm64-squash-zstd-${LACROS_VERSION}" "widevine-${PV}/lacros.squashfs" || die "Failed to copy lacros.squashfs"
|
2024-02-24 17:18:53 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
export DESTDIR="${D}"
|
|
|
|
export SCRIPT_BASE="$(pwd)"
|
2024-02-24 17:22:46 -08:00
|
|
|
patch -p1 <"${FILESDIR}/widevine-installer.patch" || die "Failed to apply patch"
|
|
|
|
"./widevine-installer" || die "Installation failed"
|
2024-02-24 17:18:53 -08:00
|
|
|
}
|