Skip to content

Commit

Permalink
chromium-stable: bump to 121.0.6167.184 (#14)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
licy183 authored Mar 26, 2024
1 parent a983b0e commit b4b1c40
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tur-chromium/chromium-stable/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ TERMUX_PKG_HOMEPAGE=https://www.chromium.org/Home
TERMUX_PKG_DESCRIPTION="Chromium web browser"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="Chongyun Lee <[email protected]>"
_CHROMIUM_VERSION=120.0.6099.224
_CHROMIUM_VERSION=121.0.6167.184
TERMUX_PKG_VERSION=$_CHROMIUM_VERSION
TERMUX_PKG_SRCURL=(https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$_CHROMIUM_VERSION.tar.xz)
TERMUX_PKG_SHA256=(850a85c8d8a01041a07dfaaea8289fa5f8294b4e375e6b77997b61434e0a2f1a)
TERMUX_PKG_SHA256=(9fd6b82e7077ac26ec264bfcfc8ac8e0c2a0240378f035c9c0f34ad467aef09d)
TERMUX_PKG_DEPENDS="atk, cups, dbus, gtk3, krb5, libc++, libevdev, libxkbcommon, libminizip, libnss, libwayland, libx11, mesa, openssl, pango, pulseaudio, libdrm, libjpeg-turbo, libpng, libwebp, libflac, fontconfig, freetype, zlib, libxml2, libxslt, libopus, libsnappy"
# TODO: Split chromium-common and chromium-headless
# TERMUX_PKG_DEPENDS+=", chromium-common"
Expand Down Expand Up @@ -65,6 +65,8 @@ termux_step_configure() {
env -i PATH="$PATH" sudo ./build/install-build-deps.sh --no-syms --no-arm --no-chromeos-fonts --no-nacl --no-prompt --unsupported
build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
local _amd64_sysroot_path="$(pwd)/build/linux/$(ls build/linux | grep 'amd64-sysroot')"
rm -rf "$_amd64_sysroot_path"
build/linux/sysroot_scripts/install-sysroot.py --arch=amd64

# Link to system tools required by the build
mkdir -p third_party/node/linux/node-linux-x64/bin
Expand Down Expand Up @@ -103,6 +105,8 @@ termux_step_configure() {
# This is needed to build cups
cp -Rf $TERMUX_PREFIX/bin/cups-config usr/bin/
chmod +x usr/bin/cups-config
# Cherry-pick LWG3545 for NDK r26
patch -p1 < $TERMUX_SCRIPTDIR/common-files/chromium-patches/sysroot-patches/libcxx-17-lwg3545.diff
popd

# Construct args
Expand All @@ -122,6 +126,8 @@ termux_step_configure() {
env -i PATH="$PATH" sudo ./build/install-build-deps.sh --lib32 --no-syms --no-arm --no-chromeos-fonts --no-nacl --no-prompt --unsupported
build/linux/sysroot_scripts/install-sysroot.py --arch=i386
local _i386_sysroot_path="$(pwd)/build/linux/$(ls build/linux | grep 'i386-sysroot')"
rm -rf "$_i386_sysroot_path"
build/linux/sysroot_scripts/install-sysroot.py --arch=i386
_target_cpu="arm"
_v8_current_cpu="x86"
_v8_sysroot_path="$_i386_sysroot_path"
Expand Down Expand Up @@ -231,6 +237,12 @@ llvm_android_mainline = true
s|@V8_SYSROOT@|$_v8_sysroot_path|g
" $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn

# Cherry-pick LWG3545 for GCC
patch -p1 -d $_amd64_sysroot_path < $TERMUX_SCRIPTDIR/common-files/chromium-patches/sysroot-patches/libstdcxx3-10-lwg3545.diff
if [ "$_v8_sysroot_path" != "$_amd64_sysroot_path" ]; then
patch -p1 -d $_v8_sysroot_path < $TERMUX_SCRIPTDIR/common-files/chromium-patches/sysroot-patches/libstdcxx3-10-lwg3545.diff
fi

mkdir -p $TERMUX_PKG_BUILDDIR/out/Release
cat $_common_args_file > $TERMUX_PKG_BUILDDIR/out/Release/args.gn
gn gen $TERMUX_PKG_BUILDDIR/out/Release --export-compile-commands
Expand Down

0 comments on commit b4b1c40

Please sign in to comment.