# Build requires gn and ninja # also clang, clang++, ar, nm # ungoogled-chromium way retrieve: mkdir -p chromium-downloads ./ungoogled-chromium/utils/downloads.py retrieve -c chromium-downloads -i ./ungoogled-chromium/downloads.ini unpack: ./ungoogled-chromium/utils/downloads.py unpack -c chromium-downloads -i ./ungoogled-chromium/downloads.ini -- chromium-src # google way checkout: mkdir -p repo export PATH="$$PATH:$${HOME}/builds/chromium/depot_tools" && cd repo && fetch --nohooks chromium # AUR Preparation Steps apply-aur-mods: cd chromium-src && ../aur-mods.sh apply-aur-patches: # Use the --oauth2-client-id= and --oauth2-client-secret= switches for # setting GOOGLE_DEFAULT_CLIENT_ID and GOOGLE_DEFAULT_CLIENT_SECRET at # runtime -- this allows signing into Chromium without baked-in values cd chromium-src && patch -Np1 -i ../aur-patches/use-oauth2-client-switches-as-default.patch # Remove '-Xclang -no-opaque-pointers' flag not supported by our clang cd chromium-src && patch -Np1 -i ../aur-patches/remove-no-opaque-pointers-flag.patch # Upstream fixes # Revert kGlobalMediaControlsCastStartStop enabled by default # https://crbug.com/1314342 cd chromium-src && patch -Rp1 -F3 -i ../aur-patches/enable-GlobalMediaControlsCastStartStop.patch # https://chromium-review.googlesource.com/c/chromium/src/+/3488058 #archived cd chromium-src && patch -Np1 -i ../aur-patches/chromium-libxml-unbundle.patch # Revert ffmpeg roll requiring new channel layout API support # https://crbug.com/1325301 cd chromium-src && patch -Rp1 -i ../aur-patches/roll-src-third_party-ffmpeg.patch # https://chromium-review.googlesource.com/c/chromium/src/+/2862724 cd chromium-src && patch -Np1 -i ../aur-patches/sql-make-VirtualCursor-standard-layout-type.patch # Wayland/EGL regression (crbug #1071528 #1071550) cd chromium-src && patch -Np1 -i ../aur-patches/wayland-egl.patch # Ungoogled Chromium Steps prune-binaries: ./ungoogled-chromium/utils/prune_binaries.py chromium-src ./ungoogled-chromium/pruning.list apply-ungoogle-patches: ./ungoogled-chromium/utils/patches.py apply chromium-src ./ungoogled-chromium/patches apply-michael-patches: cd chromium-src && patch -Np1 -i ../michael-patches/michael-customizations.patch subst-domains: mkdir -p chromium-src/cache ./ungoogled-chromium/utils/domain_substitution.py apply \ -r ./ungoogled-chromium/domain_regex.list \ -f ./ungoogled-chromium/domain_substitution.list \ -c chromium-src/cache/domsubcache.tar.gz \ chromium-src # More AUR Preparation Steps configure-libraries: cd chromium-src && ../configure-libraries.sh # Build the package build-chromium: cd chromium-src && ../build.sh build-launcher: cd chromium-launcher && make clean-zips: rm chromium-src-release.tar.gz rm chromium-launcher.tar.gz rm aur-confs.tar.gz #chromium-src/out/Release/swiftshader/*.so \ create-zips: apack chromium-src-release.tar.gz \ chromium-src/LICENSE \ chromium-src/out/Release/chrome \ chromium-src/out/Release/chromedriver \ chromium-src/out/Release/chrome_sandbox \ chromium-src/out/Release/chrome_100_percent.pak \ chromium-src/out/Release/chrome_200_percent.pak \ chromium-src/out/Release/chrome_crashpad_handler \ chromium-src/out/Release/resources.pak \ chromium-src/out/Release/v8_context_snapshot.bin \ chromium-src/out/Release/libEGL.so \ chromium-src/out/Release/libGLESv2.so \ chromium-src/out/Release/libvk_swiftshader.so \ chromium-src/out/Release/vk_swiftshader_icd.json\ chromium-src/out/Release/locales/*.pak \ chromium-src/chrome/app/theme/chromium/product_logo_*.png \ chromium-src/chrome/app/theme/default_100_percent/chromium/product_logo_*.png \ chromium-src/chrome/installer/linux/common/desktop.template \ chromium-src/chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml \ chromium-src/chrome/app/resources/manpage.1.in apack chromium-launcher.tar.gz \ chromium-launcher apack aur-confs.tar.gz \ aur-confs/chromium-drirc-disable-10bpc-color-configs.conf create-pkgbuild: cp PKGBUILD.template PKGBUILD sed -i "s//$$(sha256sum chromium-src-release.tar.gz | awk '{ print $$1 }')/" PKGBUILD sed -i "s//$$(sha256sum aur-confs.tar.gz | awk '{ print $$1 }')/" PKGBUILD sed -i "s//$$(sha256sum chromium-launcher.tar.gz | awk '{ print $$1 }')/" PKGBUILD makepkg: makepkg install: makepkg --install