blob: 3d11fb50a1d4aff4c28e518b87c4556ee8d1b7d8 (
plain)
1 # Description: Open source version of Google Chrome web browser.
2 # URL: http://chromium.org/
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Packager: Tadeusz Sosnierz, tadzikes gmail com
5 # Depends on: dbus-glib gperf gtk libevent libexif libgcrypt mesa3d ninja nss pciutils speech-dispatcher xorg-libxscrnsaver xorg-libxt xorg-libxtst yasm
6
7 name=chromium
8 version=52.0.2743.116
9 release=1
10 source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz \
11 $name.sh $name.desktop)
12
13 build() {
14 cd $name-$version
15
16 touch chrome/test/data/webui/i18n_process_css_test.html
17
18 export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
19 export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
20
21 build/gyp_chromium build/all.gyp --depth=. \
22 -Duse_sysroot=0 \
23 -Dclang=0 \
24 -Dpython_ver="2.7" \
25 -Dno_strict_aliasing=1 \
26 -Dwerror= \
27 -Dlinux_sandbox_path=/usr/lib/$name/chrome-sandbox \
28 -Dlinux_strip_binary=1 \
29 -Dlinux_use_gold_binary=0 \
30 -Dlinux_use_gold_flags=0 \
31 -Drelease_extra_cflags="$CFLAGS" \
32 -Dproprietary_codecs=1 \
33 -Dffmpeg_branding=Chrome \
34 -Dlibspeechd_h_prefix=speech-dispatcher/ \
35 -Duse_system_libjpeg=1 \
36 -Duse_system_libxslt=1 \
37 -Duse_system_libxml=1 \
38 -Duse_system_bzip2=1 \
39 -Duse_system_zlib=0 \
40 -Duse_system_libpng=0 \
41 -Duse_system_ffmpeg=0 \
42 -Duse_system_yasm=1 \
43 -Duse_system_libevent=1 \
44 -Duse_system_sqlite=0 \
45 -Duse_system_ssl=0 \
46 -Duse_system_icu=0 \
47 -Dremove_webcore_debug_symbols=1 \
48 -Duse_gconf=0 \
49 -Duse_cups=0 \
50 -Duse_gnome_keyring=0 \
51 -Duse_kerberos=0 \
52 -Duse_pulseaudio=0 \
53 -Dlinux_link_gnome_keyring=0 \
54 -Dlinux_link_libpci=1 \
55 -Dlinux_link_libspeechd=1 \
56 -Denable_webrtc=1 \
57 -Ddisable_nacl=1 \
58 -Dicu_use_data_file_flag=1
59
60 ninja -C out/Release chrome chrome_sandbox
61
62 install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
63 install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
64 install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
65 install -d $PKG/usr/lib/$name/locales
66 install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
67 cp -a out/Release/resources $PKG/usr/lib/$name
68 install -m 0644 -D out/Release/chrome.1 $PKG/usr/share/man/man1/$name.1
69
70 # fix v8 natives
71 cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
72
73 for size in 22 24 48 128 256; do
74 install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \
75 $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
76 done
77
78 # fix icu installation
79 cp -a out/Release/icudtl.dat $PKG/usr/lib/$name
80
81 install -d $PKG/usr/share/pixmaps
82 ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
83 install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
84 install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name
85 }
|