blob: f1eb98e2ee090fa3270d9b3da250d306d9ec1924 (
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 gtk3 libevent libexif libgcrypt ninja nss pciutils speech-dispatcher xorg-libxscrnsaver xorg-libxt yasm
6
7 name=chromium
8 version=56.0.2924.28
9 release=1
10 source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz \
11 last-commit-position.patch $name.sh $name.desktop)
12
13 build() {
14 cd $name-$version
15
16 export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
17 export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
18
19 # we don't use git sources
20 patch -p1 -i $SRC/last-commit-position.patch
21
22 _gn_args=(
23 'blink_gc_plugin=false'
24 'clang_use_chrome_plugins=false'
25 'enable_hangout_services_extension=true'
26 'enable_nacl=false'
27 'enable_nacl_nonsfi=false'
28 'fatal_linker_warnings=false'
29 'ffmpeg_branding="Chrome"'
30 'is_clang=false'
31 'is_debug=false'
32 'linux_use_bundled_binutils=false'
33 'proprietary_codecs=true'
34 'remove_webcore_debug_symbols=true'
35 'symbol_level=0'
36 'treat_warnings_as_errors=false'
37 'use_allocator="none"'
38 'use_cups=false'
39 'use_gconf=false'
40 'use_gnome_keyring=false'
41 'use_gold=false'
42 'use_kerberos=false'
43 'use_pulseaudio=false'
44 'use_sysroot=false'
45 'use_system_libjpeg=true'
46 )
47
48 python2 tools/gn/bootstrap/bootstrap.py --gn-gen-args="${_gn_args[*]}"
49 out/Release/gn gen out/Release --args="${_gn_args[*]}" --script-executable=/usr/bin/python2
50
51 ninja -C out/Release chrome chrome_sandbox
52
53 install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
54 install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
55 install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
56 install -d $PKG/usr/lib/$name/locales
57 install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
58 cp -a out/Release/resources $PKG/usr/lib/$name
59 install -m 0644 -D out/Release/chrome.1 $PKG/usr/share/man/man1/$name.1
60
61 # fix v8 natives
62 cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
63
64 for size in 22 24 48 128 256; do
65 install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \
66 $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
67 done
68
69 # fix icu installation
70 cp -a out/Release/icudtl.dat $PKG/usr/lib/$name
71
72 install -d $PKG/usr/share/pixmaps
73 ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
74 install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
75 install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name
76 }
|