Skip to content

Commit

Permalink
Add chromium-66.0.3331.2
Browse files Browse the repository at this point in the history
donald committed Jan 28, 2018
1 parent 931ce7a commit 174b0ef
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions chromium-66.0.3331.2-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#! /bin/bash

# https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md

PKG=chromium
VERSION=66.0.3331.2
BUILD=0

PREFIX=/pkg/$PKG-$VERSION-$BUILD
#PREFIX=/dev/shm/$PKG-$VERSION-$BUILD
#PREFIX=/scratch/local2/$PKG-$VERSION-$BUILD

set -xe
umask 022

BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp
##test -d $BUILD_TMPDIR && (find $BUILD_TMPDIR -type d -not -perm -u=w -exec chmod u=rwx {} \; && rm -rf $BUILD_TMPDIR)
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home

exec </dev/null

mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
. $PREFIX/profile

export MAKEFLAGS="-j $(nproc)"

BUILDDIR=$PREFIX/build

mkdir -p $BUILDDIR
cd $BUILDDIR

test -d depot_tools || git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

PATH=$PATH:$PREFIX/build/depot_tools

test -d chromium || mkdir chromium
cd chromium
test -d src || fetch --nohooks chromium
cd src
git checkout -f $VERSION
patch -p1 < /src/mariux/patches/chrome-66-Disable-warning-for-missing-API-keys.patch
gclient runhooks

test -d $PREFIX/bin || mkdir $PREFIX/bin
test -d out || mkdir out
test -e out/Default || ln -s $PREFIX/bin out/Default

gn gen out/Default
ninja -C out/Default chrome

exit

0 comments on commit 174b0ef

Please sign in to comment.