Hi althalus,
Thank you so much for posting this script. I had some difficulties with it as originally listed. My slightly modified version is below (working for me, although probably could be improved). Again, many thanks.
Also to get get flash you must do the following:
create /usr/local/chrome-linux/plugins/libflashplayer.so
libflashplayer.so is a symlink to "wherever you have flash on your system"
Hope this is of some help.
Best regards,
sci_fi
----------------------------------------------------
#!/bin/sh
# Where are extensions?
EXTDIR=/tmp/test
rmdir -r /tmp/test
mkdir /tmp/test
# Where is the extension?
CHROMEXT=/mnt/sda1/tce/optional/chromium-browser.tcz
# Get the latest release version
RELEASE=`wget
http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/LATEST -O -`
# Where to put things?
TMPDIR=/"tmp/chromium/${RELEASE}"
# Create the temp dir and get latest pre-compiled version
mkdir ${TMPDIR} -p
wget
http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/${RELEASE}/chrome-linux.zip -O ${TMPDIR}/chrome-linux.zip
# Extract archives
unzip ${TMPDIR}/chrome-linux.zip -d ${TMPDIR}
# Set up dirs for new extension
mkdir ${TMPDIR}/ext/usr/local/tce.menu -p
mkdir ${TMPDIR}/ext/usr/local/tce.installed -p
mkdir ${TMPDIR}/ext/usr/local/tce.icons -p
mkdir ${TMPDIR}/ext/usr/local/share/applications -p
mkdir ${TMPDIR}/ext/usr/local/share/pixmaps -p
# Get the icon
wget
http://www.chromium.org/_/rsrc/1220198801738/config/app/images/customLogo/customLogo.gif \
-O ${TMPDIR}/ext/usr/local/share/pixmaps/chromium-browser.png
# Set up wbar entry
cat > ${TMPDIR}/ext/usr/local/tce.icons/chromium-browser-nightly << EOF
i: /usr/local/share/pixmaps/chromium-browser.png
t: Chromium
c: /usr/local/chrome-linux/chrome-wrapper
EOF
# Set up JWM menu entry
cat > ${TMPDIR}/ext/usr/local/tce.menu/chromium-browser-nightly << EOF
<JWM>
<Program label="Chromium">/usr/local/chrome-linux/chrome-wrapper</Program>
</JWM>
EOF
# Set up freedesktop entry
cat > ${TMPDIR}/ext/usr/local/share/applications/chromium-browser.desktop << EOF
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Chromium Web Browser
Exec=/usr/local/chrome-linux/chrome-wrapper %U
Terminal=false
Icon=chromium-browser.png
Type=Application
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;
EOF
# Copy the new binaries
cp -a ${TMPDIR}/chrome-linux ${TMPDIR}/ext/usr/local/chrome-linux
#####JGS addition
sudo chmod 777 ${TMPDIR}/ext/usr/local/chrome-linux/chrome
sudo chmod 777 ${TMPDIR}/ext/usr/local/chrome-linux/chrome-wrapper
#####END JGS addition
###ln -s ${TMPDIR}/chrome-linux/chrome-wrapper /usr/local/bin/chrome-wrapper - Change by jgs
ln -s ${TMPDIR}/chrome-linux/chrome-wrapper /ext/usr/local/bin/chrome-wrapper
# No need to fix up the existing menu entries.
ln -s ${TMPDIR}/chrome-linux/chrome-wrapper /ext/usr/local/bin/chromium-browser
# Make extension and put it into the TCE directory.
mksquashfs ${TMPDIR}/ext ${TMPDIR}/chromium-browser-nightly.tcz
cp ${TMPDIR}/chromium-browser-nightly.tcz ${EXTDIR}/chromium-browser-nightly.tcz
# dep list
cat > ${EXTDIR}/chromium-browser-nightly.tcz.dep << EOF
atk.tcz
cairo.tcz
pango.tcz
glib2.tcz
fontconfig.tcz
expat2.tcz
libxml2.tcz
graphics-libs-1.tcz
pixman.tcz
Xlibs_support.tcz
gtk2.tcz
ORBit2.tcz
libIDL.tcz
GConf.tcz
dbus.tcz
dbus-glib.tcz
bzip2-lib.tcz
libasound.tcz
sqlite3.tcz
nss-nspr.tcz
shared-mime-info.tcz
hicolor-icon-theme.tcz
EOF