summaryrefslogtreecommitdiff
path: root/packages/net-www/chromium-stable/chromium-stable-60.0.3112.113.exheres-0
blob: d4bf8be162d4a4e9961a9ade4756ce87436a9512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2009-2011 Elias Pipping <pipping@exherbo.org>
# Copyright 2009 Heiko Przybyl <zuxez@cs.tu-berlin.de>
# Distributed under the terms of the GNU General Public License v2

require chromium

DESCRIPTION+="
Chromium has three release channels: Stable, Beta, and Dev. This package corresponds to the Stable
channel.
"

PLATFORMS="~amd64 ~x86"

RESTRICT=test

DEPENDENCIES+="
    build+run:
        !net-www/chromium-beta
        !net-www/chromium-dev
        !net-www/chromium-stable-flash-plugin [[
            description = [ Chrome binary plugins don't contain flash anymore ]
            resolution = uninstall-blocked-before
        ]]
        !net-www/chromium-stable-pdf-plugin [[
            description = [ Chromium now provides libpdf ]
            resolution = uninstall-blocked-before
        ]]
    suggestion:
        net-www/chromium-stable-widevine-plugin [[ description = [ Content Decryption Module plugin required for e.g. Netflix ] ]]
"

# http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${PV}-1_amd64.deb
# $ ar -x google-chrome-stable_${PV}-1_amd64.deb
# $ tar xf data.tar.xz
# $ strings ./opt/google/chrome/chrome | grep -C 1 " (version:" | head -n 1
WIDEVINE_VERSION=1.4.8.1000

DEFAULT_SRC_PREPARE_PATCHES=(
    "${FILES}"/${PN}-gn-bootstrap.patch
    "${FILES}"/${PN}-59.0.3071.115-ucontext-fix.patch
)

src_prepare() {
    chromium_src_prepare

    edo sed \
        -e "14i#define WIDEVINE_CDM_VERSION_STRING \"${WIDEVINE_VERSION}\"" \
        -i "third_party/widevine/cdm/stub/widevine_cdm_version.h"
}