mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/chromium to 103.0.5060.114-1
This commit is contained in:
parent
cd071acbfe
commit
f4b8de8219
2 changed files with 57 additions and 6 deletions
|
@ -15,10 +15,11 @@
|
|||
highmem=1
|
||||
|
||||
pkgname=chromium
|
||||
pkgver=103.0.5060.53
|
||||
pkgver=103.0.5060.114
|
||||
pkgrel=1
|
||||
_launcher_ver=8
|
||||
_gcc_patchset=4
|
||||
_manual_clone=1
|
||||
pkgdesc="A web browser built for speed, simplicity, and security"
|
||||
arch=('x86_64')
|
||||
url="https://www.chromium.org/Home"
|
||||
|
@ -33,7 +34,7 @@ optdepends=('pipewire: WebRTC desktop sharing under Wayland'
|
|||
'org.freedesktop.secrets: password storage backend on GNOME / Xfce'
|
||||
'kwallet: support for storing passwords in KWallet on Plasma')
|
||||
options=('!lto') # Chromium adds its own flags for ThinLTO
|
||||
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
|
||||
source=(https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz
|
||||
https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver/chromium-launcher-$_launcher_ver.tar.gz
|
||||
https://github.com/stha09/chromium-patches/releases/download/chromium-${pkgver%%.*}-patchset-$_gcc_patchset/chromium-${pkgver%%.*}-patchset-$_gcc_patchset.tar.xz
|
||||
enable-GlobalMediaControlsCastStartStop.patch
|
||||
|
@ -44,7 +45,7 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgn
|
|||
0001-widevine-support-for-arm.patch
|
||||
0002-Run-blink-bindings-generation-single-threaded.patch
|
||||
0003-Fix-eu-strip-build-for-newer-GCC.patch)
|
||||
sha256sums=('0ecbae14670506da90c8bf744f83f52a64a5fff0765c2e2e066b0e68b805b101'
|
||||
sha256sums=('d359a415eca7beceddd1b06bb5b5b6a09da9c778ca37cfa4efeaeaa8691bfd52'
|
||||
'213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a'
|
||||
'fed11a8987d9f9baa04457fb114f8f7fdb800300a3780927020865bcc43e4f52'
|
||||
'779fb13f2494209d3a7f1f23a823e59b9dded601866d3ab095937a1a04e19ac6'
|
||||
|
@ -56,6 +57,11 @@ sha256sums=('0ecbae14670506da90c8bf744f83f52a64a5fff0765c2e2e066b0e68b805b101'
|
|||
'4c79e4beac02269c864e69264ba6325ea809a5fefb8f48553bb2a610b1bb45f5'
|
||||
'597083226fd762c8e4fd527d4ea2478b8cbf9180f12740efd9c6a1f4798a5d3a')
|
||||
|
||||
if (( _manual_clone )); then
|
||||
source[0]=fetch-chromium-release
|
||||
makedepends+=('python-httplib2' 'python-pyparsing' 'python-six')
|
||||
fi
|
||||
|
||||
# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
|
||||
# Keys are the names in the above script; values are the dependencies in Arch
|
||||
declare -gA _system_libs=(
|
||||
|
@ -92,7 +98,10 @@ depends+=(${_system_libs[@]})
|
|||
_google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
if (( _manual_clone )); then
|
||||
./fetch-chromium-release $pkgver
|
||||
fi
|
||||
cd chromium-$pkgver
|
||||
|
||||
# Allow building against system libraries in official builds
|
||||
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
|
||||
|
@ -165,7 +174,7 @@ prepare() {
|
|||
build() {
|
||||
make -C chromium-launcher-$_launcher_ver
|
||||
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd chromium-$pkgver
|
||||
|
||||
# Rebuild eu-strip
|
||||
pushd buildtools/third_party/eu-strip
|
||||
|
@ -249,7 +258,7 @@ package() {
|
|||
install -Dm644 LICENSE \
|
||||
"$pkgdir/usr/share/licenses/chromium/LICENSE.launcher"
|
||||
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd ../chromium-$pkgver
|
||||
|
||||
install -D out/Release/chrome "$pkgdir/usr/lib/chromium/chromium"
|
||||
install -Dm4755 out/Release/chrome_sandbox "$pkgdir/usr/lib/chromium/chrome-sandbox"
|
||||
|
|
42
extra/chromium/fetch-chromium-release
Normal file
42
extra/chromium/fetch-chromium-release
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
readonly VERSION=$1
|
||||
if [[ -z $VERSION ]]; then
|
||||
echo >&2 'No version given as an argument'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir chromium-checkout
|
||||
cd chromium-checkout
|
||||
cat >.gclient <<EOF
|
||||
solutions = [
|
||||
{
|
||||
"name": "src",
|
||||
"url": "https://chromium.googlesource.com/chromium/src.git",
|
||||
"managed": False,
|
||||
"custom_deps": {},
|
||||
"custom_vars": {},
|
||||
},
|
||||
]
|
||||
EOF
|
||||
|
||||
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools
|
||||
export PATH+=":$PWD/depot_tools" DEPOT_TOOLS_UPDATE=0
|
||||
export VPYTHON_BYPASS='manually managed python not supported by chrome operations'
|
||||
|
||||
git clone -b $VERSION --depth=2 https://chromium.googlesource.com/chromium/src
|
||||
gclient sync --no-history --nohooks
|
||||
src/build/util/lastchange.py -o src/build/util/LASTCHANGE
|
||||
src/build/util/lastchange.py -m SKIA_COMMIT_HASH \
|
||||
-s src/third_party/skia --header src/skia/ext/skia_commit_hash.h
|
||||
src/build/util/lastchange.py -m GPU_LISTS_VERSION \
|
||||
--revision-id-only --header src/gpu/config/gpu_lists_version.h
|
||||
src/tools/update_pgo_profiles.py --target=linux update \
|
||||
--gs-url-base=chromium-optimization-profiles/pgo_profiles
|
||||
download_from_google_storage.py --no_resume --extract --no_auth \
|
||||
--bucket chromium-nodejs -s src/third_party/node/node_modules.tar.gz.sha1
|
||||
|
||||
find src/third_party/jdk/{current,extras} -type f -delete
|
||||
mv src ../chromium-$VERSION
|
Loading…
Reference in a new issue