diff options
Diffstat (limited to 'chromium/Pkgfile')
-rw-r--r-- | chromium/Pkgfile | 67 |
1 files changed, 48 insertions, 19 deletions
diff --git a/chromium/Pkgfile b/chromium/Pkgfile index c44be960d..276926d5e 100644 --- a/chromium/Pkgfile +++ b/chromium/Pkgfile @@ -4,35 +4,53 @@ # Depends on: dbus-glib gperf gtk gtk3 libevent libexif libgcrypt ninja nodejs nss pciutils speech-dispatcher xorg-libxscrnsaver xorg-libxt yasm name=chromium -version=62.0.3202.94 +version=63.0.3239.84 release=1 source=(https://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz - last-commit-position.patch $name.sh $name.desktop - breakpad-use-ucontext_t.patch - chromium-gn-bootstrap-r17.patch - crc32c-string-view-check.patch) + last-commit-position.patch $name.sh + chromium-exclude_unwind_tables.patch + chromium-clang-r1.patch + chromium-webrtc-r0.patch) build() { cd $name-$version + if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then + # Avoid falling back to preprocessor mode when sources contain time macros + export CCACHE_SLOPPINESS=time_macros + fi + export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)" export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)" # we don't use git sources patch -p1 -i $SRC/last-commit-position.patch - # Fix incorrect inclusion of <string_view> in modes other than >= C++17 - patch -p1 -d third_party/crc32c/src -i $SRC/crc32c-string-view-check.patch - - # Fix build with glibc 2.26 - patch -p1 -i $SRC/breakpad-use-ucontext_t.patch + # https://chromium-review.googlesource.com/c/chromium/src/+/71257 + patch -p1 -i $SRC/chromium-exclude_unwind_tables.patch # Fixes from Gentoo - patch -p1 -i $SRC/chromium-gn-bootstrap-r17.patch + patch -p1 -i $SRC/chromium-clang-r1.patch + patch -p1 -i $SRC/chromium-webrtc-r0.patch mkdir -p third_party/node/linux/node-linux-x64/bin ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/ +# for LIB in ffmpeg flac harfbuzz-ng libjpeg \ +# libjpeg_turbo libpng libwebp libxslt yasm; do +# find -type f -path "*third_party/$LIB/*" \ +# \! -path "*third_party/$LIB/chromium/*" \ +# \! -path "*third_party/$LIB/google/*" \ +# \! -path "*base/third_party/icu/*" \ +# \! -regex '.*\.\(gn\|gni\|isolate\|py\)' \ +# -delete +# done + +# /usr/bin/python2 build/linux/unbundle/replace_gn_files.py \ +# --system-libraries ffmpeg flac harfbuzz-ng libjpeg libxml libevent \ +# libpng libwebp libxslt opus yasm freetype +# /usr/bin/python2 third_party/libaddressinput/chromium/tools/update-strings.py + _gn_args=( 'blink_gc_plugin=false' 'clang_use_chrome_plugins=false' @@ -54,13 +72,13 @@ build() { 'use_gconf=false' 'use_gnome_keyring=false' 'use_gold=false' + 'use_gtk3=true' 'use_kerberos=false' 'use_pulseaudio=false' 'use_sysroot=false' - 'use_system_libjpeg=true' ) - python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args="${_gn_args[*]}" + /usr/bin/python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args="${_gn_args[*]}" out/Release/gn gen out/Release --args="${_gn_args[*]}" --script-executable=/usr/bin/python2 ninja -j ${JOBS-1} -C out/Release chrome chrome_sandbox @@ -71,21 +89,32 @@ build() { install -d $PKG/usr/lib/$name/locales install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales cp -a out/Release/resources $PKG/usr/lib/$name - install -m 0644 -D out/Release/chrome.1 $PKG/usr/share/man/man1/$name.1 + + install -m 0644 -D chrome/installer/linux/common/desktop.template $PKG/usr/share/applications/$name.desktop + install -m 0644 -D chrome/app/resources/manpage.1.in $PKG/usr/share/man/man1/$name.1 + + sed -i \ + -e "s/@@MENUNAME@@/Chromium/g" \ + -e "s/@@PACKAGE@@/chromium/g" \ + -e "s/@@USR_BIN_SYMLINK_NAME@@/chromium/g" \ + $PKG/usr/share/applications/$name.desktop \ + $PKG/usr/share/man/man1/$name.1 # fix v8 natives cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name - for size in 22 24 48 128 256; do + for size in 16 32; do + install -m 0644 -D chrome/app/theme/default_100_percent/$name/product_logo_${size}.png \ + /usr/share/icons/hicolor/${size}x${size}/apps/$name.png + done + + for size in 22 24 48 64 128 256; do install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \ $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png done # fix icu installation - cp -a out/Release/icudtl.dat $PKG/usr/lib/$name + install -m 0644 -D out/Release/icudtl.dat $PKG/usr/lib/$name/icudtl.dat - install -d $PKG/usr/share/pixmaps - ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png - install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name } |