# $Id: PKGBUILD 277477 2016-10-01 03:36:40Z foutrelis $ # Maintainer: Evangelos Foutras # Contributor: Pierre Schmitz # Contributor: Jan "heftig" Steffens # Contributor: Daniel J Griffiths pkgname=inox-edgy pk=enox name=chromium pkgver=68.0.3416.0 pkgrel=1 _launcher_ver=5 pkgdesc="Chromium nightly snapshots, without google blobs" arch=('i686' 'x86_64') url="https://www.chromium.org/Home" license=('BSD') depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'libpulse' 'pciutils' 'json-glib' 'desktop-file-utils' 'hicolor-icon-theme' 'libappindicator-gtk3' 'libappindicator-gtk2') makedepends=('python2' 'gperf' 'yasm' 'mesa' 'ninja' 'nodejs' 'git' 'atk' 'at-spi2-atk') optdepends=('pepper-flash: support for Flash content' 'kdialog: needed for file dialogs in KDE' 'gnome-keyring: for storing passwords in GNOME keyring' 'kwallet: for storing passwords in KWallet') install=inox-edgy.install source=(https://commondatastorage.googleapis.com/chromium-browser-official/$name-$pkgver.tar.xz chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz https://raw.githubusercontent.com/bn0785ac/in-night/master/enox.desktop https://raw.githubusercontent.com/bn0785ac/in-night/master/breakpad-use-ucontext_t.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/crc32c-string-view-check.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/chromium-gn-bootstrap-r17.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/001.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/002.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/004.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/005.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/006.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/007.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/008.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/009.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/010.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/011.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/012.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/013.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/014.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/015.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/016.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2kb.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/018.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/k1.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/019.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/020.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/021.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/022.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/023.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/024.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/025.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/026.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/027.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/029.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/030.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/031.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/032.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/034.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/035.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/360.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/037.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/038.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/12.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/16.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/20.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/9k.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/048.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/gna.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/gnb.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/3992.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2992.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2ka.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/product_logo_{16,22,24,32,48,64,128,256}.png https://raw.githubusercontent.com/bn0785ac/in-night/master/2kc.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2kd.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2ke.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2kf.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2kg.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2kh.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/2ki.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/na.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/nb.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/nc.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/nd.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/a.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/b.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/c.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/d.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/e.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/k.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/l.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/l2.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/l3.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/m.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/n.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/o.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/p.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/r21.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/bp.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/CP.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/888.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/narnia1.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/meme.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/p1.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/p2.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/e3.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/pt.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/edgy.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/k2.patch https://raw.githubusercontent.com/bn0785ac/in-night/master/desu.patch ) sha256sums=('205fc6cfc75ecaf73c19d0cc35612f7ece08d9dc065dc258846942b1a51f3d2b' '4dc3428f2c927955d9ae117f2fb24d098cc6dd67adb760ac9c82b522ec8b0587' '2d33f3b42c0e48de5044548fe885ea351f66a60f3164b700721af8bf200243eb' '6e9a345f810d36068ee74ebba4708c70ab30421dad3571b6be5e9db635078ea8' '35435e8dae76737baafecdc76d74a1c97281c4179e416556e033a06a31468e6d' 'd81319f168dad0e411c8e810f73daa2f56ff579578771bd9c9bb1aa2d7c09a8b' 'ecd1cf05b2c41e608aaeda9ca4fe8d6c698c09455d73bba73c7efccac44cdbcb' '5c5bacde0ae1d9b634eeeb8f690d74a3713891eb771bf2046788264b25fb586d' '2a584c6e3938ecc14e591369441a7ffdd4988e02336440614a52f2eee615517f' '0a6e050f5acbe9b90de88f3f7c3828bc190f5831ed582a8e49005fe999db306c' '5c8c3ad7d5b4ebda7508e3aee13349fc8ad627d7a7e3147168e214f03e433168' '885bd27063ebc43b7030e9d9d364a46a248c4744f66c466017b42a83a279e6ab' '8696919f69ef927f095944ae7ef869b283450a4b2cdd4efdebc51fc2b1e747e0' 'b9899b26e65a6fc376bffd8cb685667b0ec1b04e90c8250f40c969bf4602c5a0' 'fd5fdc83665113677951e2e713a4696d999a070d6b59bb57319df357b35d4fad' '3850ad42d0cb4ca011d46b9d569a0a2bf83476f0c3da70c74d4f011cec59f885' '7beb0f3bbc55960092347767d423415860a3867525f6d1bbb057b3d72fae0618' 'bcaeeb52d5d17fa9e6d4883cdeef8150f7e6ce440e0fcd3cef17d99f4b5db672' 'f6a4c02feb5b21f1814d0b835b94a8b6222628ff97800b5411dc86852bfa5883' 'b5532de9e402a7d0b12258e9de56722e7eec84dc54cd53b9fe25d62c7354c0af' 'f4af2787f31abe66ab1180affed6f4c97daaad9151de429c9f5dc3e223cc8d87' '0aeb560922cb5d628528fbd33fad23a3d33c3b0caa06a6fa799da2e55741f5cb' '1632b2d3b9062e6ec8872b9df180f82a93099a50eda6f15125ffe56dd45beca6' '098391051a6c0d0300f438a18b96bd84074d26aa31b11f95afd67def062116c0' '9be24cb424d59cea12944bdb451690728e373ece6e4e93dbae8b92078da2130d' 'b35247d9ca4a7a40d9ca59e95ee9457245d903542e4c29033d200b6198396820' '7cde4208b87ba4632e2c83aa13163d3b34935d6175c868b671c74bb17b752fb5' '519965231b125f40a644829e50529befe496e02ca2e03ebc38d8791706bf2162' '442274439bf7d569edecbc1628b2a73fc0b3fa0901298037f613c1a68010e119' '4d3599e3e09dcaf66f66c7df279e59f30a542f82b10223b8f7e447d38f6b4f6f' 'd975a6abd6cb8ff2a2178d9a4755ea978033af522a0b4121d025703133a87ca2' 'a392decc52fff5cd660f293b26739d7203f8678cc57d560f1b42efff1d43dc0d' '038571a1df00b5ec63a20b442a7e6a0b382b805f4bb91fff1ed8186a9cf8d066' 'db1d9f62899a1acf917394d807f10765f3cbeef63c42f1e8359239b806f42517' 'da25ed7557ae7083d28819d88d2c5e89dc23845a1daa7000ee8035148e2d49d7' '0a148b0a15a63feb08ed79695a80d09ad39db7a3373b217cd499909218b94fda' 'cabe339110369d08b2cef0b4308ee8eb8385054583815c3927421588ae94d9e7' '5a4ec61000266fd623e0a3377210ed324ed62eeba6c61ecd95ffb49d4d20640f' '4570a87cb632896818f8bf96eb38157bcbcfec55e702683e36d8bc63b16764af' '8aa6928dfeec97b5a2c2b22e1abda42fd0e57b6c480356c12ca4726a59f12fa8' '2acda9e5de0efa71c8347eb490bcae7993ae28dceaba406a0dafb50110539ba2' '66ff55dce4ebefdf0030c5cccfbf1dc4e269c681ad9e23d7be5df17c0a884858' '5530e0c60dcfed5d17c7877d3c717b2b9fb2679c59bfe29a3784dce8b7bdd54b' '216829c72f1cc378bc66fb4f62f047cccd31684d946ba9a406b6e7a8f1351677' '48a42d38899795d4e959c6ec27a5e2288a3db54d3abf99f9caae887402d53988' '33c3a19d6818f5e1559df2c85479205fdd0adf2e67758287cd956f6a5acb05b6' '0ac16793634edde24c214eeffa9def755b9b76b256dfa3d9fd31de6002ff5dfa' 'df1cb61901ad861ffe1335f2dd516d473a062507cd498e6b6afd93ad41ff03af' '9d4953a3dc73cb01d9d65ea297ab4b09d47b4daaa5f2291ef35d0784a2f18a4e' '430a837af0ca13edae6f1a854c1dd2a051b71317fe1f8f4a69e0da0fb910e69f' 'c81a1414b48fb57e7089f3ceb1e85f34090348f4d6d8c7d1c138afd98a7663d4' '73a73b6551595c7bbe4eff6ab8cb5cd110cb62675c855370fc2121ec2e127be3' '3bada398110162424b4ef39a531efe627924a87666042dff6716a53e830a578d' 'eea3267d7902a9e0463b83dd3dfecf77ce965e6481956d55b6a2f4e14e9ec6f6' '6a9da2d08bf59c58d030f7adb4cd80e65ed918b7dc9316b911908c772a2df47e' 'b44bdeed4f3bfa314a18c8de7f45c50c58ed2ddb246318cfbc793dd9c92260d9' 'ef7b8055c13a4043e503f6d0ff366967e6726910106151762f1ae8fdad7509b6' '967248b475cd7f495f160cb96a2fcb2a9684b2632fa4cfb90938921e04598b45' 'f04a103034426917980573a26088734e211e47c79706d964e3294801ff518816' 'f59483b9d7d93fd09ffce43f987078d656a67b2c7b90877d845932f290ce4c8c' '3fad36de0df6bf61047561ce18d5f08b66fb232aa3e80f82e4a0408a758f3f61' '2c7a6274bfe2afcaa4186d421a0690ac2bc0015e8bc80e3a589f04b4931a030f' '4d52981f00ba86edd9c0875d20f7368845d9e184a3a36f258a67d990d105097e' '54d4471bec9e4390e1d2c562a6a3278bf44deb65d01fe5fb8f1477e67e8a957a' '0848fe30322bfb6dd7c06110f5d8468f1ce68caf6cd6a184b531cc9653f21420' 'cdc55ec692caffb02fba826308c6e39b0045674460098bda085237f2123798a0' '3c95bf62701f762b166e78c88e06752caf057a00fdaaae87de561fafc321b20b' '127747c5c692b0b0ef62f0e6ae79c894cd4798846bba53bf23b0b8bbe6974ba0' '065a69ca6547e89f84ded7b95e29a7fb3ac762eaac3aa940ab1ec5a3ecbe3a2f' 'a31bfe021beb091a37252a443c452ba6f3bc50299f237f47880ae5163d014b28' 'c367599e25bd9d408d52dd26ceec9f0048b0991cc74980c8c40d602e61a2a844' 'b54a69d6eeb03bf56e5a6430cbc07fd8d12532709876d38828e4c455eca29e3b' '1677aecf5934ba8bfb87bdbe95c390822a1fd2efc719dcf4b51ee56715a18f79' '6130351d4c918e5b60f0ea4914e7e2f26fe4221ac97bcecacb4161fd2d23906c' 'fb3abae54309adf69b98bd2435fbc23f17bc526dbf1d1e97907da87e7cf0aeed' 'fb7c96ecf7f97fd6d356b8ca714efc518fc5bf40d92a23a5ff1ad8462d56b248' '541136a480187de769d7dfd9da6ac63b3bb65583a553b32615ad5a9e6331ea65' '38af0293f67513b2480047aebbd84fd5998ab3a20fb1af7a3f1e52b97dd27b20' '6d3251fb5aa200725a8cdc977d203ef98aaf8ed1564d0a4fa3b67c29a56520a9' 'aaf6af367fcd478499f306cb1db44bbd4f58fadfc4b969046ec9fb47a2327db7' '51a336bee649d77a623b5da536c3b77b81ea67dbc9c1c34f9539c739d420379e' 'a72bfdbea4e1bf9c273a78ef9c186968b1e7dd3e993a4a381488d8b9c9613552' '502b4eca6edf10fe1d036ab2c65363b4300de91b381ce687e08bd96dc254c898' '717d8d042c8c8e64d01c173090c52172fab4f09e8857e8510fbdd5f7361e0e5e' '157489aa80f1a845e9a683d66552d64836b388c910724b32e496133538523ee1' 'a5327677d62f34da26e7aa714d49e71f7ebfcdbcb16b37dd8fe34fdf0d92c438' 'e660590ebc900879d059ea0b8f9cfbf66f45d0d43f04f1b11ce2d0daf781f265' '84d61c7ccc1e99dd593970bfff1cbc030b586cc90531541d17323e6b92f15230' '4705552f63a28314f3225ebc0cf9d82993466397de2eee3dc9b2c4a085c63f7d' 'e3cbf8c407974cee82541f0c2395059e90d513e050c05f23975465595c23f0c5' '1bb54bd32e78bddc68986a5ddb93eff29ac6cfe2744a499f52071fa3420591f0' '32143c45fd3bf609d13ab9ea78a82b8363b6b20340ea5a830e1fd926462f05fa' '519d1c2787ae7a7cc3300a55292a3be1252775e9c40e19df24d5fcb93c48adb1' '55776e2235c2026cccb19c015e4bc58dea4066bdeb83c0603cd936f382a8e0ae' '042b36c27c788f80fcbb3d55059d22ce773a2eebf2b5e5bd7d7780d32c0a96da' 'cd4c8fa8294f542a3fea1dd3df4a0a7370723f7139e5c59ec53f4ed639976d80' 'a00a82e7c6e692c695971b2bf462442076975ebb42d9b66009d8e8489465c29e') # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py # Keys are the names in the above script; values are the dependencies in Arch declare -rgA _system_libs=( #[ffmpeg]=ffmpeg # https://crbug.com/731766 [flac]=flac #[freetype]=freetype2 # https://crbug.com/pdfium/733 #[harfbuzz-ng]=harfbuzz-icu #[icu]=icu [libdrm]= [libjpeg]=libjpeg #[libpng]=libpng # https://crbug.com/752403#c10 #[libvpx]=libvpx # https://bugs.gentoo.org/611394 [libwebp]=libwebp [libxml]=libxml2 [libxslt]=libxslt [opus]=opus [re2]=re2 [snappy]=snappy [yasm]= #[zlib]=minizip ) depends+=(${_system_libs[@]}) # Google API keys (see https://www.chromium.org/developers/how-tos/api-keys) # Note: These are for Arch Linux use ONLY. For your own distribution, please # get your own set of keys. prepare() { cd "$srcdir/$name-$pkgver" # https://crbug.com/710701 local _chrome_build_hash=$(curl -s https://chromium.googlesource.com/chromium/src.git/+/$pkgver?format=TEXT | base64 -d | grep -Po '^parent \K[a-z0-9]{40}$') if [[ -z $_chrome_build_hash ]]; then error "Unable to fetch Chrome build hash." return 1 fi echo "LASTCHANGE=$_chrome_build_hash-" >build/util/LASTCHANGE patch -Np1 -i ../001.patch patch -Np1 -i ../002.patch patch -Np1 -i ../004.patch patch -Np1 -i ../005.patch patch -Np1 -i ../006.patch patch -Np1 -i ../007.patch patch -Np1 -i ../008.patch patch -Np1 -i ../009.patch patch -Np1 -i ../010.patch patch -Np1 -i ../011.patch patch -Np1 -i ../012.patch patch -Np1 -i ../013.patch patch -Np1 -i ../014.patch patch -Np1 -i ../015.patch patch -Np1 -i ../016.patch patch -Np1 -i ../2kb.patch patch -Np1 -i ../018.patch patch -Np1 -i ../019.patch patch -Np1 -i ../020.patch patch -Np1 -i ../021.patch patch -Np1 -i ../022.patch patch -Np1 -i ../023.patch #patch -Np1 -i ../024.patch patch -Np1 -i ../025.patch #patch -Np1 -i ../026.patch patch -Np1 -i ../027.patch patch -Np1 -i ../029.patch patch -Np1 -i ../030.patch patch -Np1 -i ../CP.patch patch -Np1 -i ../032.patch patch -Np1 -i ../034.patch #patch -Np1 -i ../035.patch patch -Np1 -i ../360.patch patch -Np1 -i ../888.patch patch -Np1 -i ../meme.patch patch -Np1 -i ../037.patch patch -Np1 -i ../038.patch patch -Np1 -i ../pt.patch msg2 'Cut media router' patch -Np1 -i ../3992.patch patch -Np1 -i ../2992.patch patch -Np1 -i ../2ka.patch #patch -Np1 -i ../2kc.patch patch -Np1 -i ../2kd.patch patch -Np1 -i ../2ke.patch patch -Np1 -i ../2kf.patch patch -Np1 -i ../2kg.patch patch -Np1 -i ../2kh.patch patch -Np1 -i ../2ki.patch patch -Np1 -i ../na.patch patch -Np1 -i ../nb.patch patch -Np1 -i ../nc.patch patch -Np1 -i ../nd.patch patch -Np1 -i ../a.patch patch -Np1 -i ../b.patch patch -Np1 -i ../c.patch patch -Np1 -i ../d.patch patch -Np1 -i ../k.patch patch -Np1 -i ../l.patch patch -Np1 -i ../l2.patch patch -Np1 -i ../l3.patch patch -Np1 -i ../m.patch patch -Np1 -i ../n.patch patch -Np1 -i ../o.patch patch -Np1 -i ../p1.patch patch -Np1 -i ../p2.patch patch -Np1 -i ../narnia1.patch patch -Np1 -Ri ../9k.patch patch -Np1 -i ../048.patch patch -Np1 -i ../12.patch patch -Np1 -i ../16.patch patch -Np1 -i ../k1.patch patch -Np1 -i ../k2.patch patch -Np1 -i ../edgy.patch patch -Np1 -i ../r21.patch # Fix build with glibc 2.26 patch -Np1 -i ../gna.patch patch -Np1 -i ../gnb.patch patch -Np1 -i ../desu.patch # Fix incorrect inclusion of in modes other than >= C++17 # Fixes from Gentoo # Use Python 2 find . -name '*.py' -exec sed -i -r 's|/usr/bin/python$|&2|g' {} + # There are still a lot of relative calls which need a workaround mkdir "$srcdir/python2-path" ln -s /usr/bin/python2 "$srcdir/python2-path/python" mkdir -p third_party/node/linux/node-linux-x64/bin ln -s /usr/bin/node third_party/node/linux/node-linux-x64/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 # added benefit of not having to list all the remaining libraries python2 build/linux/unbundle/replace_gn_files.py \ --system-libraries "${!_system_libs[@]}" python2 tools/clang/scripts/update.py cd "$srcdir/chromium-launcher-$_launcher_ver" patch -Np1 -i ../20.patch } build() { make -C chromium-launcher-$_launcher_ver cd "$srcdir/$name-$pkgver" export PATH="$srcdir/python2-path:$PATH" export TMPDIR="$srcdir/temp" mkdir -p "$TMPDIR" local _flags=( 'symbol_level=0' 'is_debug=false' 'fatal_linker_warnings=false' 'treat_warnings_as_errors=false' 'fieldtrial_testing_like_official_build=true' 'remove_webcore_debug_symbols=true' 'ffmpeg_branding="Chrome"' 'proprietary_codecs=true' 'link_pulseaudio=true' 'use_gnome_keyring=false' 'use_gold=false' 'use_sysroot=false' 'linux_use_bundled_binutils=false' 'use_custom_libcxx=false' 'use_system_libjpeg=true' 'use_vaapi=false' 'enable_hangout_services_extension=false' 'enable_widevine=false' 'enable_webrtc=true' 'enable_nacl=false' 'enable_swiftshader=false' 'enable_nacl_nonsfi=false' 'enable_google_now=false' 'enable_print_preview=true' 'enable_remoting=false' 'use_lld=false' ) _clang_path="${srcdir}/chromium-${pkgver}/third_party/llvm-build/Release+Asserts/bin" _c_compiler="${_clang_path}/clang" _cpp_compiler="${_clang_path}/clang++" export CXXFLAGS="${CXXFLAGS//-fno-plt/}" export CFLAGS="${CFLAGS//-fno-plt/}" CFLAGS+=' -Wno-unknown-warning-option' CXXFLAGS+=' -Wno-unknown-warning-option' # Export compilers msg2 "Setup ${_compiler} compiler${_compiler_msg}" export AR=ar export NM=nm export CC="${_c_compiler}" export CXX="${_cpp_compiler}" sed 's|is_win \|\| (is_linux && use_x11 && !is_chromeos)|false|g' -i third_party/angle/gni/angle.gni python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args "${_flags[*]}" out/Release/gn gen out/Release --args="${_flags[*]}" \ --script-executable=/usr/bin/python2 python2 build/util/lastchange.py -m GPU_LISTS_VERSION \ --revision-id-only --header gpu/config/gpu_lists_version.h #its optimized for 16 ram, if you get segfaults or crashes read linuxfromscratch.org/blfs/view/svn/xsoft/chromium.html msg2 'you may get oom errors if you make something edgy while you are building me' ninja -j8 -C out/Release pdf chrome chrome_sandbox chromedriver } package() { cd chromium-launcher-$_launcher_ver make PREFIX=/usr DESTDIR="$pkgdir" install install -Dm644 LICENSE \ "$pkgdir/usr/share/licenses/enox/LICENSE.launcher" cd "$srcdir/$name-$pkgver" install -D out/Release/chrome "$pkgdir/usr/lib/$pk/$pk" install -Dm644 "$srcdir/enox.desktop" \ "$pkgdir/usr/share/applications/enox.desktop" install -Dm4755 out/Release/chrome_sandbox \ "$pkgdir/usr/lib/enox/chrome-sandbox" cp -a \ out/Release/{chrome_{100,200}_percent,resources}.pak \ out/Release/{*.bin,chromedriver} \ out/Release/locales \ "$pkgdir/usr/lib/enox/" if [[ -z ${_system_libs[icu]+set} ]]; then cp out/Release/icudtl.dat "$pkgdir/usr/lib/enox/" fi ln -s /usr/lib/$pk/enoxdriver "$pkgdir/usr/bin/enoxdriver" for size in 16 22 24 32 48 64 128 256; do install -Dm644 "$srcdir/product_logo_$size.png" \ "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/$pk.png" done install -Dm644 LICENSE "$pkgdir/usr/share/licenses/enox/LICENSE" } # vim:set ts=2 sw=2 et: