1 # Copyright 2009 Heiko Przybyl <zuxez@cs.tu-berlin.de>
2 # Distributed under the terms of the GNU General Public License v2
4 require chromium multilib
6 SUMMARY+=" (latest binary snapshot)"
8 PLATFORMS="~amd64 ~x86"
13 WORK="${WORKBASE}/chrome-linux"
15 # The latest version gets updated really often. So there won't ever be
16 # mirroring and adjusting versioins all the time just sucks donkey balls.
19 if option "platform:amd64"; then
20 SYSTEM=chromium-rel-linux-64
22 SYSTEM=chromium-rel-linux
25 # get the version info
26 VER=$(curl http://build.chromium.org/buildbot/snapshots/${SYSTEM}/LATEST)
28 einfo "Will fetch latest chromium binary snapshot ${VER}"
30 wget -O "${FETCHEDDIR}"/${SYSTEM}-99999.zip \
31 http://build.chromium.org/buildbot/snapshots/${SYSTEM}/${VER}/chrome-linux.zip \
32 || die "failed to fetch snapshot ${SYSTEM}/${VER}"
37 if option "platform:amd64"; then
38 SYSTEM=chromium-rel-linux-64
40 SYSTEM=chromium-rel-linux
43 unpack ${SYSTEM}-99999.zip
48 local dest=/opt/chromium-${PV}
52 doexe chrome chrome_sandbox xdg-settings
56 doins -r *.* locales resources themes
58 # add symlinks for libraries
62 for l in $(ldd chrome | gawk '{ print $1 }') ; do
65 to=/usr/$(get_libdir)/${l/.0d/}
68 to=/usr/$(get_libdir)/nss/${l/.1d/}
74 dosym ${to} ${dest}/${l}
77 chromium_do_wrapper "${dest}"