diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 30 insertions, 16 deletions
@@ -5,11 +5,11 @@ # Contributor: Daniel J Griffiths <ghost1227@archlinux.us> pkgname=chromium-no-extras -pkgver=90.0.4430.212 +pkgver=91.0.4472.77 pkgrel=1 _pkgname=chromium _launcher_ver=7 -_gcc_patchset=6 +_gcc_patchset=5 pkgdesc="Chromium without hangout services, widevine, pipewire, or chromedriver" arch=('x86_64') url="https://www.chromium.org/Home" @@ -22,20 +22,28 @@ depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt' makedepends=('python' 'gn' 'ninja' 'clang' 'lld' 'gperf' 'nodejs' 'java-runtime-headless' 'python2' 'python2-setuptools') optdepends=( - 'kdialog: needed for file dialogs in KDE' + 'kdialog: support for native dialogs in Plasma' 'org.freedesktop.secrets: password storage backend on GNOME / Xfce' - 'kwallet: for storing passwords in KWallet on KDE desktops') + 'kwallet: support for storing passwords in KWallet on Plasma') source=(https://commondatastorage.googleapis.com/chromium-browser-official/$_pkgname-$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 + fix-crash-in-ThemeService.patch + unbundle-use-char16_t-as-UCHAR_TYPE.patch add-clang-nomerge-attribute-to-CheckError.patch + sql-make-VirtualCursor-standard-layout-type.patch chromium-glibc-2.33.patch + unexpire-accelerated-video-decode-flag.patch use-oauth2-client-switches-as-default.patch) -sha256sums=('abe11d0cb1ff21278aad2eec1a1e279d59176b15331804d7df1807446786d59e' +sha256sums=('45d5a43ef798d20313c78fa8a075be0c22055e39c8481eb53eabda81df901b31' '86859c11cfc8ba106a3826479c0bc759324a62150b271dd35d1a0f96e890f52f' - '3eb9580ea35a96789e02815270498226fa33726f4210a5ee36f3868af2ffae1f' - '5e22afcb91b5402bc09e80630c5323d61013c3fccb0bbd9b23d1e79a400b00d0' + '171525009003a9ed1182cfcb6f407d7169d9a731a474304e263029376719f55a' + '3cfe46e181cb9d337c454b5b5adbf5297052f29cd617cdee4380eeb1943825d8' + '59a59a60a08b335fe8647fdf0f9d2288d236ebf2cc9626396d0c4d032fd2b25d' + '50133dd196d288ad538bb536aa51dccd6cb4aacfd9a60160f77e8fb16034b460' + 'dd317f85e5abfdcfc89c6f23f4c8edbcdebdd5e083dcec770e5da49ee647d150' '2fccecdcd4509d4c36af873988ca9dbcba7fdb95122894a9fdf502c33a1d7a4b' + '82a85105fc33b92a84dabb7ed6725ccbb56f1075c11f9f3f43bb8ff724f88847' 'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711') # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py @@ -90,21 +98,32 @@ prepare() { # runtime -- this allows signing into Chromium without baked-in values patch -Np1 -i ../use-oauth2-client-switches-as-default.patch + # https://crbug.com/1207478 + patch -Np0 -i ../unexpire-accelerated-video-decode-flag.patch + # https://crbug.com/1164975 patch -Np1 -i ../chromium-glibc-2.33.patch + # Upstream fixes + patch -Np1 -i ../fix-crash-in-ThemeService.patch + patch -Np1 -i ../unbundle-use-char16_t-as-UCHAR_TYPE.patch + # Revert addition of [[clang::nomerge]] attribute; not supported by clang 11 - patch -Rp1 -d base <../add-clang-nomerge-attribute-to-CheckError.patch + patch -Rp1 -i ../add-clang-nomerge-attribute-to-CheckError.patch + + # https://chromium-review.googlesource.com/c/chromium/src/+/2862724 + patch -Np1 -i ../sql-make-VirtualCursor-standard-layout-type.patch # Fixes for building with libstdc++ instead of libc++ - patch -Np1 -i ../patches/chromium-90-quantization_utils-include.patch - patch -Np1 -i ../patches/chromium-90-TokenizedOutput-include.patch + patch -Np1 -i ../patches/chromium-90-ruy-include.patch # Force script incompatible with Python 3 to use /usr/bin/python2 sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py + # Link to system tools required by the build mkdir -p third_party/node/linux/node-linux-x64/bin ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/ + ln -s /usr/bin/java third_party/jdk/current/bin/ # Remove bundled libraries for which we will use the system copies; this # *should* do what the remove_bundled_libraries.py script does, with the @@ -133,11 +152,6 @@ build() { cd "$srcdir/$_pkgname-$pkgver" - if check_buildoption ccache y; then - # Avoid falling back to preprocessor mode when sources contain time macros - export CCACHE_SLOPPINESS=time_macros - fi - export CC=clang export CXX=clang++ export AR=ar @@ -148,7 +162,7 @@ build() { 'host_toolchain="//build/toolchain/linux/unbundle:default"' 'clang_use_chrome_plugins=false' 'is_official_build=true' # implies is_cfi=true on x86_64 - 'chrome_pgo_phase=0' # unsupported instrumentation profile format version + 'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile 'treat_warnings_as_errors=false' 'fieldtrial_testing_like_official_build=true' 'ffmpeg_branding="Chrome"' |