OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Script to install everything needed to build chromium (well, ideally, anyway) | 2 # Script to install everything needed to build chromium (well, ideally, anyway) |
3 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 3 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
4 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 4 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
5 set -ex | 5 set -ex |
6 | 6 |
7 # TODO(dkegel): add sha1sum verification | 7 # TODO(dkegel): add sha1sum verification |
8 download() { | 8 download() { |
9 dir=$1 | 9 dir=$1 |
10 file=$2 | 10 file=$2 |
(...skipping 11 matching lines...) Expand all Loading... |
22 } | 22 } |
23 | 23 |
24 download_deb() { | 24 download_deb() { |
25 download $1 $2 | 25 download $1 $2 |
26 unpack_deb $2 | 26 unpack_deb $2 |
27 } | 27 } |
28 | 28 |
29 install_hardy() { | 29 install_hardy() { |
30 sudo apt-get install subversion pkg-config python perl g++ g++-multilib \ | 30 sudo apt-get install subversion pkg-config python perl g++ g++-multilib \ |
31 bison flex gperf libnss3-dev libglib2.0-dev libgtk2.0-dev \ | 31 bison flex gperf libnss3-dev libglib2.0-dev libgtk2.0-dev \ |
32 libnspr4-0d libnspr4-dev wdiff lighttpd php5-cgi msttcorefonts | 32 libnspr4-0d libnspr4-dev wdiff lighttpd php5-cgi msttcorefonts \ |
| 33 sun-java6-fonts |
33 | 34 |
34 wget -c http://www.trevp.com/tlslite/tlslite-0.3.8.tar.gz | 35 wget -c http://www.trevp.com/tlslite/tlslite-0.3.8.tar.gz |
35 tar xvfz tlslite-0.3.8.tar.gz | 36 tar xvfz tlslite-0.3.8.tar.gz |
36 cd tlslite-0.3.8/ | 37 cd tlslite-0.3.8/ |
37 patch -p1 < ../../third_party/tlslite/google.patch | 38 patch -p1 < ../../third_party/tlslite/google.patch |
38 python setup.py build | 39 python setup.py build |
39 sudo python setup.py install | 40 sudo python setup.py install |
40 cd .. | 41 cd .. |
41 rm -rf tlslite-0.3.8 | 42 rm -rf tlslite-0.3.8 |
42 } | 43 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 then | 100 then |
100 install_hardy | 101 install_hardy |
101 elif egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue && test `uname -m` = x86_64 | 102 elif egrep -q "Ubuntu 8.04|Ubuntu 8.10" /etc/issue && test `uname -m` = x86_64 |
102 then | 103 then |
103 install_hardy_64 | 104 install_hardy_64 |
104 else | 105 else |
105 echo "Unsupported system" | 106 echo "Unsupported system" |
106 exit 1 | 107 exit 1 |
107 fi | 108 fi |
108 | 109 |
OLD | NEW |