net-www/chromium: Fix SUMMARY.
[pippings-exhereses.git] / packages / net-www / chromium / chromium-99999.exheres-0
blobf9f96a8aa0aee88823ae7d768af7c0fd8383f2b6
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"
10 DOWNLOADS=""
12 RESTRICT="strip"
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.
17 src_fetch_extra() {
18     local SYSTEM
19     if option "platform:amd64"; then
20         SYSTEM=chromium-rel-linux-64
21     else
22         SYSTEM=chromium-rel-linux
23     fi
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}"
35 src_unpack() {
36     local SYSTEM
37     if option "platform:amd64"; then
38         SYSTEM=chromium-rel-linux-64
39     else
40         SYSTEM=chromium-rel-linux
41     fi
43     unpack ${SYSTEM}-99999.zip
46 src_install() {
47     # install into /opt
48     local dest=/opt/chromium-${PV}
50     # executable
51     exeinto ${dest}
52     doexe chrome chrome_sandbox xdg-settings
54     # data
55     insinto ${dest}
56     doins -r *.* locales resources themes
58     # add symlinks for libraries
59     cd "${IMAGE}"${dest}
61     local to
62     for l in $(ldd chrome | gawk '{ print $1 }') ; do
63         case ${l} in
64             *.0d)
65                 to=/usr/$(get_libdir)/${l/.0d/}
66                 ;;
67             *.1d)
68                 to=/usr/$(get_libdir)/nss/${l/.1d/}
69                 ;;
70             *)
71                 continue
72                 ;;
73         esac
74         dosym ${to} ${dest}/${l}
75     done
77     chromium_do_wrapper "${dest}"