blob: 3a6435d0146e7641a6799c483bbabaa615341725 (
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 gtk libevent nss xorg-libxscrnsaver xorg-libxtst libgcrypt xorg-libxdamage yasm xorg-libxt gperf speech-dispatcher
6
7 name=chromium
8 version=26.0.1410.63
9 release=1
10 source=(http://commondatastorage.googleapis.com/chromium-browser-official/$name-$version.tar.xz \
11 $name.sh {audio-buffer,speech-dispatcher,use-siginfo_t}.patch)
12
13 build() {
14 cd $name-$version
15
16 # fix building issues
17 patch -p1 -i $SRC/audio-buffer.patch
18 patch -p2 -i $SRC/speech-dispatcher.patch
19 patch -p1 -i $SRC/use-siginfo_t.patch
20
21 find third_party/WebKit/Source ui/base/ime \
22 -type f -exec sed -e 's|<glib/.*\.h>|<glib.h>|g' -i {} \;
23
24 export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
25 export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
26
27 build/gyp_chromium -f make build/all.gyp --depth=. \
28 -Dno_strict_aliasing=1 \
29 -Dwerror= \
30 -Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
31 -Dlinux_strip_binary=1 \
32 -Drelease_extra_cflags="$CFLAGS" \
33 -Dproprietary_codecs=1 \
34 -Dffmpeg_branding=Chrome \
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=1 \
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 -Dremove_webcore_debug_symbols=1 \
47 -Duse_gconf=0 \
48 -Duse_cups=0 \
49 -Duse_gnome_keyring=0 \
50 -Duse_kerberos=0 \
51 -Dlinux_link_gnome_keyring=0 \
52 -Dlinux_link_libpci=1 \
53 -Dlinux_link_libspeechd=1 \
54 -Denable_webrtc=1 \
55 -Ddisable_nacl=1
56
57 make chrome chrome_sandbox BUILDTYPE=Release
58
59 install -m 0755 -D out/Release/chrome $PKG/usr/lib/chromium/chromium
60 install -m 4555 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/chromium/chromium-sandbox
61 install -m 0644 -D out/Release/*.pak $PKG/usr/lib/chromium
62 install -m 0755 -D out/Release/libffmpegsumo.so $PKG/usr/lib/chromium
63 install -d $PKG/usr/lib/chromium/locales
64 install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/chromium/locales
65 cp -a out/Release/resources $PKG/usr/lib/chromium
66 install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/chromium.1
67
68 for size in 22 24 48 128 256; do
69 install -m 0644 -D chrome/app/theme/chromium/product_logo_${size}.png \
70 $PKG/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
71 done
72
73 install -m 0755 -D $SRC/chromium.sh $PKG/usr/bin/chromium
74 }
|