diff --git a/talimatname/genel/chromium/chromium-52.0.2743.116-unset-madv_free.patch b/talimatname/genel/chromium/chromium-52.0.2743.116-unset-madv_free.patch new file mode 100644 index 000000000..2867c7967 --- /dev/null +++ b/talimatname/genel/chromium/chromium-52.0.2743.116-unset-madv_free.patch @@ -0,0 +1,15 @@ +diff -up chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp +--- chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free 2016-08-15 13:07:29.279655676 -0400 ++++ chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-15 13:08:38.447317416 -0400 +@@ -41,6 +41,11 @@ + #include + #include + ++#if OS(LINUX) && defined(MADV_FREE) ++// Added in Linux 4.5, but it breaks the sandbox. ++#undef MADV_FREE ++#endif ++ + #ifndef MADV_FREE + #define MADV_FREE MADV_DONTNEED + #endif diff --git a/talimatname/genel/chromium/chromium-fix-print-preview-on-en_GB-locale.patch b/talimatname/genel/chromium/chromium-fix-print-preview-on-en_GB-locale.patch deleted file mode 100644 index 9ebc089cb..000000000 --- a/talimatname/genel/chromium/chromium-fix-print-preview-on-en_GB-locale.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc -diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc -index 6cfd861387c9f8b145fb33472b10025537986213..c936a9c1dadb13c00418e8ae79a8a1987c1d36cd 100644 ---- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc -+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc -@@ -1222,7 +1222,10 @@ void PrintPreviewHandler::GetNumberFormatAndMeasurementSystem( - UErrorCode errorCode = U_ZERO_ERROR; - const char* locale = g_browser_process->GetApplicationLocale().c_str(); - UMeasurementSystem system = ulocdata_getMeasurementSystem(locale, &errorCode); -- if (errorCode > U_ZERO_ERROR || system == UMS_LIMIT) -+ // On error, assume the units are SI. -+ // Since the only measurement units print preview's WebUI cares about are -+ // those for measuring distance, assume anything non-US is SI. -+ if (errorCode > U_ZERO_ERROR || system != UMS_US) - system = UMS_SI; - - // Getting the number formatting based on the locale and writing to diff --git a/talimatname/genel/chromium/chromium-use-non-versioned-icu-namespace.patch b/talimatname/genel/chromium/chromium-use-non-versioned-icu-namespace.patch deleted file mode 100644 index f7b0b6d80..000000000 --- a/talimatname/genel/chromium/chromium-use-non-versioned-icu-namespace.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: components/autofill/core/common/autofill_l10n_util.cc -diff --git a/components/autofill/core/common/autofill_l10n_util.cc b/components/autofill/core/common/autofill_l10n_util.cc -index 2ee517faf82b1feb224f83ae533092ae3b31f5af..c29b0a299b7215895874adf9241e4705247161ab 100644 ---- a/components/autofill/core/common/autofill_l10n_util.cc -+++ b/components/autofill/core/common/autofill_l10n_util.cc -@@ -22,7 +22,7 @@ CaseInsensitiveCompare::CaseInsensitiveCompare(const icu::Locale& locale) { - // library. This could be due to a device-specific issue (has been seen in - // the wild on Android devices). In the failure case, |collator_| will be - // null. See http://crbug.com/558625. -- icu_54::UnicodeString name; -+ icu::UnicodeString name; - std::string locale_name; - locale.getDisplayName(name).toUTF8String(locale_name); - LOG(ERROR) << "Failed to initialize the ICU Collator for " diff --git a/talimatname/genel/chromium/chromium-widevine.patch b/talimatname/genel/chromium/chromium-widevine.patch deleted file mode 100644 index 12010b2a8..000000000 --- a/talimatname/genel/chromium/chromium-widevine.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -upr chromium-42.0.2311.90.orig/third_party/widevine/cdm/widevine_cdm_version.h chromium-42.0.2311.90/third_party/widevine/cdm/widevine_cdm_version.h ---- chromium-42.0.2311.90.orig/third_party/widevine/cdm/widevine_cdm_version.h 2015-04-15 01:18:59.000000000 +0300 -+++ chromium-42.0.2311.90/third_party/widevine/cdm/widevine_cdm_version.h 2015-04-15 09:09:49.157260050 +0300 -@@ -14,4 +14,8 @@ - // - WIDEVINE_CDM_VERSION_STRING (with the version of the CDM that's available - // as a string, e.g., "1.0.123.456"). - -+#include "third_party/widevine/cdm/widevine_cdm_common.h" -+#define WIDEVINE_CDM_AVAILABLE -+#define WIDEVINE_CDM_VERSION_STRING "@WIDEVINE_VERSION@" -+ - #endif // WIDEVINE_CDM_VERSION_H_ - diff --git a/talimatname/genel/chromium/chromium.default b/talimatname/genel/chromium/chromium.default index 61be28d85..429f58e21 100644 --- a/talimatname/genel/chromium/chromium.default +++ b/talimatname/genel/chromium/chromium.default @@ -1,5 +1,5 @@ -# Default settings for chromium. This file is sourced by /usr/bin/chromium +# Default settings for chromium. +# This file is sourced by /usr/bin/chromium -# Options to pass to chromium -# flash-version updated dynamically with .install file -CHROMIUM_FLAGS="--ppapi-flash-path=/opt/chromium/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=1.2.3.4" +# Options to pass to chromium: +#CHROMIUM_FLAGS="" diff --git a/talimatname/genel/chromium/chromium.desktop b/talimatname/genel/chromium/chromium.desktop index ab86c81cd..ebdabd9b0 100644 --- a/talimatname/genel/chromium/chromium.desktop +++ b/talimatname/genel/chromium/chromium.desktop @@ -1,67 +1,113 @@ [Desktop Entry] Version=1.0 -Encoding=UTF-8 Name=Chromium # Only KDE 4 seems to use GenericName, so we reuse the KDE strings. # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. GenericName=Web Browser -GenericName[ar]=متصفح الشبكة -GenericName[bg]=Уеб браузър +GenericName[ar]=متصفح الشبكة +GenericName[bg]=Уеб браузър GenericName[ca]=Navegador web -GenericName[cs]=WWW prohlížeč +GenericName[cs]=WWW prohlížeč GenericName[da]=Browser GenericName[de]=Web-Browser -GenericName[el]=Περιηγητής ιστού +GenericName[el]=Περιηγητής ιστού GenericName[en_GB]=Web Browser GenericName[es]=Navegador web GenericName[et]=Veebibrauser GenericName[fi]=WWW-selain GenericName[fr]=Navigateur Web -GenericName[gu]=વેબ બ્રાઉઝર -GenericName[he]=דפדפן ××™× ×˜×¨× ×˜ -GenericName[hi]=वेब ब्राउज़र -GenericName[hu]=WebböngészÅ‘ +GenericName[gu]=વેબ બ્રાઉઝર +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hu]=Webböngésző GenericName[it]=Browser Web -GenericName[ja]=ウェブブラウザ -GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ -GenericName[ko]=웹 ë¸Œë¼ìš°ì € -GenericName[lt]=Žiniatinklio narÅ¡yklÄ— -GenericName[lv]=TÄ«mekļa pārlÅ«ks -GenericName[ml]=വെബ് ബ്രൌസര്‍ -GenericName[mr]=वेब ब्राऊजर +GenericName[ja]=ウェブブラウザ +GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ +GenericName[ko]=웹 브라우저 +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Tīmekļa pārlūks +GenericName[ml]=വെബ് ബ്രൌസര്‍ +GenericName[mr]=वेब ब्राऊजर GenericName[nb]=Nettleser GenericName[nl]=Webbrowser -GenericName[pl]=PrzeglÄ…darka WWW +GenericName[pl]=Przeglądarka WWW GenericName[pt]=Navegador Web GenericName[pt_BR]=Navegador da Internet GenericName[ro]=Navigator de Internet -GenericName[ru]=Веб-браузер +GenericName[ru]=Веб-браузер GenericName[sl]=Spletni brskalnik -GenericName[sv]=Webbläsare -GenericName[ta]=இணைய உலாவி -GenericName[th]=เว็บเบราว์เซอร์ -GenericName[tr]=Web Tarayıcı -GenericName[uk]=Навігатор Тенет -GenericName[zh_CN]=网页浏览器 -GenericName[zh_HK]=ç¶²é ç€è¦½å™¨ -GenericName[zh_TW]=ç¶²é ç€è¦½å™¨ +GenericName[sv]=Webbläsare +GenericName[ta]=இணைய உலாவி +GenericName[th]=เว็บเบราว์เซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[zh_CN]=网页浏览器 +GenericName[zh_HK]=網頁瀏覽器 +GenericName[zh_TW]=網頁瀏覽器 # Not translated in KDE, from Epiphany 2.26.1-0ubuntu1. -GenericName[bn]=ওয়েব ব্রাউজার +GenericName[bn]=ওয়েব ব্রাউজার GenericName[fil]=Web Browser GenericName[hr]=Web preglednik GenericName[id]=Browser Web -GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର -GenericName[sk]=WWW prehliadač -GenericName[sr]=Интернет прегледник -GenericName[te]=మహాతల అన్వేషి -GenericName[vi]=Bá»™ duyệt Web +GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର +GenericName[sk]=WWW prehliadač +GenericName[sr]=Интернет прегледник +GenericName[te]=మహాతల అన్వేషి +GenericName[vi]=Bộ duyệt Web # Gnome and KDE 3 uses Comment. -Comment=Chromium web-browser bundle, including pdf, flash and gtalk plugin -Comment[de]=Chromium web-browser bundel, mit pdf, flash und gtalk plugin -Comment[en_GB]=Chromium web-browser bundle, including pdf, pepper-flash and gtalk plugin +Comment=Access the Internet +Comment[ar]=الدخول إلى الإنترنت +Comment[bg]=Достъп до интернет +Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন +Comment[ca]=Accedeix a Internet +Comment[cs]=Přístup k internetu +Comment[da]=Få adgang til internettet +Comment[de]=Internetzugriff +Comment[el]=Πρόσβαση στο Διαδίκτυο +Comment[en_GB]=Access the Internet +Comment[es]=Accede a Internet. +Comment[et]=Pääs Internetti +Comment[fi]=Käytä internetiä +Comment[fil]=I-access ang Internet +Comment[fr]=Accéder à Internet +Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો +Comment[he]=גישה אל האינטרנט +Comment[hi]=इंटरनेट तक पहुंच स्थापित करें +Comment[hr]=Pristup Internetu +Comment[hu]=Internetelérés +Comment[id]=Akses Internet +Comment[it]=Accesso a Internet +Comment[ja]=インターネットにアクセス +Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ +Comment[ko]=인터넷 연결 +Comment[lt]=Interneto prieiga +Comment[lv]=Piekļūt internetam +Comment[ml]=ഇന്റര്‍‌നെറ്റ് ആക്‌സസ് ചെയ്യുക +Comment[mr]=इंटरनेटमध्ये प्रवेश करा +Comment[nb]=Gå til Internett +Comment[nl]=Verbinding maken met internet +Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ +Comment[pl]=Skorzystaj z internetu +Comment[pt]=Aceder à Internet +Comment[pt_BR]=Acessar a internet +Comment[ro]=Accesaţi Internetul +Comment[ru]=Доступ в Интернет +Comment[sk]=Prístup do siete Internet +Comment[sl]=Dostop do interneta +Comment[sr]=Приступите Интернету +Comment[sv]=Gå ut på Internet +Comment[ta]=இணையத்தை அணுகுதல் +Comment[te]=ఇంటర్నెట్‌ను ఆక్సెస్ చెయ్యండి +Comment[th]=เข้าถึงอินเทอร์เน็ต +Comment[tr]=İnternet'e erişin +Comment[uk]=Доступ до Інтернету +Comment[vi]=Truy cập Internet +Comment[zh_CN]=访问互联网 +Comment[zh_HK]=連線到網際網路 +Comment[zh_TW]=連線到網際網路 Exec=chromium %U Terminal=false -Icon=chromium.png +Icon=chromium Type=Application -Categories=Application;Network;WebBrowser; -MimeType=text/html;text/xml;application/xhtml_xml; +Categories=GTK;Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/mailto;x-scheme-handler/webcal; diff --git a/talimatname/genel/chromium/chromium.kur-kos b/talimatname/genel/chromium/chromium.kur-kos index d4ebe42b2..7a6e77295 100644 --- a/talimatname/genel/chromium/chromium.kur-kos +++ b/talimatname/genel/chromium/chromium.kur-kos @@ -1,2 +1,31 @@ -xdg-icon-resource forceupdate --theme hicolor &>/dev/null -update-desktop-database -q +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config /etc/chromium/00-default.conf.new + +# Update the desktop database: +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2>&1 +fi + +# Update hicolor theme cache: +if [ -d /usr/share/icons/hicolor ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor 1> /dev/null 2> /dev/null + fi +fi + +# Update the mime database: +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1 +fi diff --git a/talimatname/genel/chromium/chromium.sh b/talimatname/genel/chromium/chromium.sh index db3e018f6..6057c639d 100644 --- a/talimatname/genel/chromium/chromium.sh +++ b/talimatname/genel/chromium/chromium.sh @@ -1,18 +1,16 @@ #!/bin/bash -# Override command-line options +# Allow users to override command-line options # Based on Gentoo's chromium package (and by extension, Debian's) -if [[ -f /etc/chromium/default ]]; then - . /etc/chromium/default -fi +for FILE in /etc/chromium/*.conf ; do + [[ -f ${FILE} ]] && source "${FILE}" +done -# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system -# default CHROMIUM_FLAGS (from /etc/chromium/default) +# Prefer user defined CHROMIUM_USER_FLAGS flags (from environment) over +# system default CHROMIUM_FLAGS (from /etc/chromium)/) CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-$CHROMIUM_FLAGS} - export CHROME_WRAPPER=$(readlink -f "$0") export CHROME_DESKTOP=chromium.desktop -exec /opt/chromium/chromium $CHROMIUM_FLAGS "$@" - +exec /usr/lib@LIBDIRSUFFIX@/chromium/chromium $CHROMIUM_FLAGS "$@" diff --git a/talimatname/genel/chromium/gzip_string.py b/talimatname/genel/chromium/gzip_string.py new file mode 100644 index 000000000..68f9ea1a0 --- /dev/null +++ b/talimatname/genel/chromium/gzip_string.py @@ -0,0 +1,43 @@ +# Copyright (c) 2016 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +"""Provides gzip utilities for strings. +""" +import cStringIO +import gzip +import subprocess + + +def GzipStringRsyncable(data): + # Make call to host system's gzip to get access to --rsyncable option. This + # option makes updates much smaller - if one line is changed in the resource, + # it won't have to push the entire compressed resource with the update. + # Instead, --rsyncable breaks the file into small chunks, so that one doesn't + # affect the other in compression, and then only that chunk will have to be + # updated. + gzip_proc = subprocess.Popen(['gzip', '--stdout', + '--best', '--no-name'], + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + data, stderr = gzip_proc.communicate(data) + if gzip_proc.returncode != 0: + raise subprocess.CalledProcessError(gzip_proc.returncode, 'gzip', + stderr) + return data + + +def GzipString(data): + # Gzipping using Python's built in gzip: Windows doesn't ship with gzip, and + # OSX's gzip does not have an --rsyncable option built in. Although this is + # not preferable to --rsyncable, it is an option for the systems that do + # not have --rsyncable. If used over GzipStringRsyncable, the primary + # difference of this function's compression will be larger updates every time + # a compressed resource is changed. + gzip_output = cStringIO.StringIO() + with gzip.GzipFile(mode='wb', compresslevel=9, fileobj=gzip_output, + mtime=0) as gzip_file: + gzip_file.write(data) + data = gzip_output.getvalue() + gzip_output.close() + return data diff --git a/talimatname/genel/chromium/talimat b/talimatname/genel/chromium/talimat index e560b426f..b56808afe 100644 --- a/talimatname/genel/chromium/talimat +++ b/talimatname/genel/chromium/talimat @@ -4,119 +4,130 @@ # Depends on: atk nss ninja pciutils gperf yasm xorg-mesa libgnome-keyring elfutils subversion gtk2 dbus-glib nss alsa-lib xdg-utils bzip2 libevent libgcrypt dejavu-ttf opus snappy dbus desktop-file-utils hicolor-icon-theme flac libxml2 pulseaudio xorg-libxscrnsaver xorg-libxtst libexif name=chromium -version=48.0.2564.103 -release=2 +version=53.0.2785.143 +release=1 source=(http://commondatastorage.googleapis.com/chromium-browser-official/$name-$version.tar.xz - chromium-widevine.patch chromium.desktop chromium.default chromium.sh - chromium-use-non-versioned-icu-namespace.patch - chromium-fix-print-preview-on-en_GB-locale.patch) + chromium-52.0.2743.116-unset-madv_free.patch + gzip_string.py) -_google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM -_google_default_client_id=413772536636.apps.googleusercontent.com -_google_default_client_secret=0ZChLK6AxeA3Isu96MkwqDR4 +GOOGLE_API_KEY=AIzaSyBhWJ-j5RXyt5911BMuVen-WuS10mvOnrY +GOOGLE_DEFAULT_CLIENT_ID=952820686433-mbp5sv9scfj78siq96jlvrem47qgvbi3.apps.googleusercontent.com +GOOGLE_DEFAULT_CLIENT_SECRET=XU4b-j0Ssy-XkTvSVmiFMvNY build() { - export GYP_GENERATORS='ninja' cd $name-$version - touch chrome/test/data/webui/i18n_process_css_test.html - sed -i "/'target_name': 'libvpx'/s/libvpx/&_new/" build/linux/unbundle/libvpx.gyp + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="" + TARGETARCH="x64" + patch -p1 -i $SRC/chromium-52.0.2743.116-unset-madv_free.patch - patch -Np1 -i ../chromium-use-non-versioned-icu-namespace.patch - patch -Np1 -i ../chromium-fix-print-preview-on-en_GB-locale.patch + if [ "$USE_CLANG" = "YES" ]; then + CLANG_OPT="-Dclang=1 -Dclang_use_chrome_plugins=0" + sed -e '/-Wno-absolute-value/d' -i build/common.gypi - sed "s/@WIDEVINE_VERSION@/Pinkie Pie/" ../chromium-widevine.patch | patch -Np1 - find third_party/icu -type f \! -regex '.*\.\(gyp\|gypi\|isolate\)' -delete - find . -name '*.py' -exec sed -i -r 's|/usr/bin/python$|&2|g' {} + - mkdir $SRC/python2-path - ln -s /usr/bin/python2 "$SRC/python2-path/python" - if (( $_build_nacl )); then - python2 build/download_nacl_toolchains.py \ - --packages nacl_x86_newlib,pnacl_newlib,pnacl_translator \ - sync --extract + export CC="clang" + export CXX="clang++" + SLKCFLAGS="${SLKCFLAGS} -Wno-unknown-warning-option" + else + CLANG_OPT="-Dclang=0" + SLKCFLAGS="${SLKCFLAGS} -Wno-unused-local-typedefs" fi + export -n CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" - local _chromium_conf=( - -Dgoogle_api_key=$_google_api_key - -Dgoogle_default_client_id=$_google_default_client_id - -Dgoogle_default_client_secret=$_google_default_client_secret - -Dwerror= - -Dclang=0 - -Dclang_use_chrome_plugins=0 - -Dpython_ver=2.7 - -Dlinux_link_gsettings=1 - -Dlinux_link_libpci=1 - -Dlinux_link_pulseaudio=1 - -Dlinux_strip_binary=1 - -Dlinux_use_bundled_binutils=0 - -Dlinux_use_bundled_gold=0 - -Dlinux_use_gold_flags=0 - -Dicu_use_data_file_flag=0 - -Dlogging_like_official_build=1 - -Drelease_extra_cflags="$CFLAGS" - -Dlibspeechd_h_prefix=speech-dispatcher/ - -Dffmpeg_branding=Chrome - -Dproprietary_codecs=1 - -Duse_system_bzip2=1 - -Duse_system_flac=1 - -Duse_system_ffmpeg=0 - -Duse_system_harfbuzz=1 - -Duse_system_icu=1 - -Duse_system_libevent=1 - -Duse_system_libjpeg=1 - -Duse_system_libpng=1 - -Duse_system_libvpx=0 - -Duse_system_libxml=0 - -Duse_system_snappy=1 - -Duse_system_xdg_utils=1 - -Duse_system_yasm=1 - -Duse_system_zlib=0 - -Duse_mojo=0 - -Duse_gconf=0 - -Ddisable_fatal_linker_warnings=1 - -Ddisable_glibc=1 - -Ddisable_nacl=1 - -Ddisable_pnacl=1) +_conf=( + $CLANG_OPT + -Ddisable_glibc=1 + -Dffmpeg_branding=Chrome + -Dffmpeg_component=shared_library + -Dgoogle_api_key=$GOOGLE_API_KEY + -Dgoogle_default_client_id=$GOOGLE_DEFAULT_CLIENT_ID + -Dgoogle_default_client_secret=$GOOGLE_DEFAULT_CLIENT_SECRET + -Dicu_use_data_file_flag=1 + -Dlinux_sandbox_path=/usr/lib/chromium/chrome_sandbox + -Dlinux_strip_binary=1 + -Dlinux_use_bundled_binutils=0 + -Dlinux_use_bundled_gold=0 + -Dlinux_use_gold_binary=0 + -Dlinux_use_gold_flags=0 + -Dlogging_like_official_build=1 + -Dproprietary_codecs=1 + -Dremove_webcore_debug_symbols=1 + -Duse_allocator=none + -Duse_gconf=0 + -Duse_kerberos=0 + -Duse_sysroot=0 + -Duse_pulseaudio=1 + -Duse_system_bzip2=0 + -Duse_system_ffmpeg=0 + -Duse_system_harfbuzz=0 + -Duse_system_icu=0 + -Duse_system_libjpeg=0 + -Duse_system_libpng=0 + -Duse_system_libxml=0 + -Duse_system_libxslt=0 + -Duse_system_opus=0 + -Duse_system_snappy=0 + -Duse_system_zlib=0 + -Duse_system_flac=1 + -Duse_system_libevent=1 + -Duse_system_nspr=1 + -Duse_system_openssl=1 + -Duse_system_xdg_utils=1 + -Duse_system_yasm=1 + -Dwerror= + -Drelease_extra_cflags="$CFLAGS" + -Dtarget_arch=$TARGETARCH + -Ddisable_nacl=1 + -Ddisable_sse2=1 +) - build/linux/unbundle/replace_gyp_files.py "${_chromium_conf[@]}" - build/gyp_chromium --depth=. "${_chromium_conf[@]}" + cp $SRC/gzip_string.py $SRC/$name-$version/tools/grit/grit/format/ + third_party/libaddressinput/chromium/tools/update-strings.py + touch chrome/test/data/webui/i18n_process_css_test.html + build/linux/unbundle/replace_gyp_files.py "${_conf[@]}" + build/gyp_chromium --depth=. "${_conf[@]}" + ninja -C out/Release chrome chrome_sandbox chromedriver - ninja -C out/Release chrome - ninja -C out/Release chrome_sandbox - ninja -C out/Release chromedriver + install -D out/Release/chrome $PKG/usr/lib/chromium/chromium + install -D -m4755 -o root -g root out/Release/chrome_sandbox $PKG/usr/lib/chromium/chrome-sandbox + install -D out/Release/chromedriver $PKG/usr/lib/chromium/chromedriver - mkdir -pv $PKG/opt/chromium - install -D out/Release/chrome $PKG/opt/chromium/chromium - install -Dm4755 -o root -g root out/Release/chrome_sandbox $PKG/opt/chromium/chrome-sandbox - install -D out/Release/chromedriver $PKGr/opt/chromium/chromedriver + cp out/Release/*.pak $PKG/usr/lib/chromium + cp -a out/Release/locales $PKG/usr/lib/chromium + cp -a out/Release/pseudo_locales $PKG/usr/lib/chromium + ln -s locales $PKG/usr/lib/chromium/remoting_locales + cp -a out/Release/resources $PKG/usr/lib/chromium - cp out/Release/{*.pak,*.bin} $PKG/opt/chromium/ - cp -a out/Release/locales $PKG/opt/chromium/ + mkdir -p $PKG/usr/lib/chromium/lib + cp out/Release/lib/libffmpeg.so $PKG/usr/lib/chromium/lib - install -Dm644 $SRC/chromium.default $PKG/etc/chromium/default + cp out/Release/natives_blob.bin $PKG/usr/lib/chromium + cp out/Release/snapshot_blob.bin $PKG/usr/lib/chromium + cp -a out/Release/icudtl.dat $PKG/usr/lib/chromium - find "$PKG/opt/chromium/" -name '*.d' -type f -delete + mkdir -p $PKG/usr/man/man1 + install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/chromium.1 - [ -f out/Release/chrome.1 ] && install -Dm644 out/Release/chrome.1 \ - $PKG/opt/chromium/share/man/man1/chromium.1 - install -Dm644 $SRC/chromium.desktop \ - $PKG/usr/share/applications/chromium.desktop + mkdir -p $PKG/usr/bin + cat $SRC/chromium.sh | sed s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/ > $PKG/usr/bin/chromium + chmod 0755 $PKG/usr/bin/chromium + ln -s ../lib/chromium/chromedriver $PKG/usr/bin/chromedriver + for size in 16 32; do + install -D -m0644 \ + chrome/app/theme/default_100_percent/chromium/product_logo_$size.png \ + $PKG/usr/share/icons/hicolor/${size}x${size}/apps/${name}.png + done for size in 22 24 48 64 128 256; do - install -Dm644 "chrome/app/theme/chromium/product_logo_$size.png" \ - $PKG/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png - done - - for size in 16 32; do - install -Dm644 chrome/app/theme/default_100_percent/chromium/product_logo_$size.png \ - $PKG/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png - done - - install -D $SRC/chromium.sh $PKG/usr/bin/chromium - chmod +x $PKG/usr/bin/chromium - - install -Dm644 LICENSE $PKG/opt/chromium/share/licenses/chromium/LICENSE + install -D -m0644 \ + chrome/app/theme/chromium/product_logo_$size.png \ + $PKG/usr/share/icons/hicolor/${size}x${size}/apps/${name}.png + done + install -D -m 0644 $SRC/chromium.desktop $PKG/usr/share/applications/chromium.desktop + mkdir -p $PKG/etc/chromium + cat $SRC/chromium.default > $PKG/etc/chromium/00-default.conf.new }