@@ -17,25 +17,6 @@ if [ $os == "Linux" ]; then
1717
1818 # same for any debian disto (untested), including rpi (tested)
1919 sudo apt-get install chromium
20-
21- # install chromium from source if not available via apt-get
22- # Raspbian Jesse does not include chromium in apt-get
23- if ! dpkg -s chromium; then
24- # Raspbian Jesse does not have chromium in its repositories
25- # adapted from https://medium.com/@icebob/jessie-on-raspberry-pi-2-with-docker-and-chromium-c43b8d80e7e1#6afd
26- # files from https://launchpad.net/ubuntu/+source/chromium-browser/
27- cfile=$( mktemp)
28- wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_48.0.2564.116-0ubuntu0.15.10.1.1221_armhf.deb -O $cfile
29- fffile=$( mktemp)
30- wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-codecs-ffmpeg-extra_48.0.2564.116-0ubuntu0.15.10.1.1221_armhf.deb -O $fffile
31- if ! sudo dpkg -i $fffile $cfile ; then
32- # resolve "package old or missing" error
33- sudo apt-get install -f
34- sudo dpkg -i $fffile $cfile
35- fi
36- # clean up
37- rm $cfile $fffile
38- fi
3920
4021 if [ $arq == " armv7l" ]; then
4122 # on RaspberryPi
@@ -45,6 +26,25 @@ if [ $os == "Linux" ]; then
4526 # FOR NOW, CODE GOES HERE since we're shooting for RPi support
4627 #
4728 # ####
29+
30+ # install chromium from source if not available via apt-get
31+ # Raspbian Jesse does not include chromium in apt-get
32+ if ! dpkg -s chromium; then
33+ # Raspbian Jesse does not have chromium in its repositories
34+ # adapted from https://medium.com/@icebob/jessie-on-raspberry-pi-2-with-docker-and-chromium-c43b8d80e7e1#6afd
35+ # files from https://launchpad.net/ubuntu/+source/chromium-browser/
36+ # download files
37+ cfile=$( mktemp)
38+ wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -O $cfile
39+ fffile=$( mktemp)
40+ wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -O $fffile
41+ # install
42+ sudo dpkg -i $fffile $cfile
43+ # symbolic link
44+ sudo ln -s /usr/bin/chromium-browser /usr/bin/chromium
45+ # clean up
46+ rm $cfile $fffile
47+ fi
4848
4949 # TODO: update chromium window_placement settings
5050 echo " armv7l"
0 commit comments