blob: 82ce32ca1fb60552da4fb14a80854b7a973a2045 (
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 alsa-lib gperf
6
7 name=chromium
8 version=24.0.1312.52
9 release=2
10 source=(http://commondatastorage.googleapis.com/chromium-browser-official/$name-$version.tar.bz2 \
11 $name.sh use-siginfo_t.patch)
12
13 build() {
14 cd $name-$version
15
16 # fix building issues
17 patch -p1 -i $SRC/use-siginfo_t.patch
18
19 find third_party/WebKit/Source ui/base/ime \
20 -type f -exec sed -e 's|<glib/.*\.h>|<glib.h>|g' -i {} \;
21
22 export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
23 export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
24
25 build/gyp_chromium -f make build/all.gyp --depth=. \
26 -Dgcc_version=45 \
27 -Dno_strict_aliasing=1 \
28 -Dwerror= \
29 -Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
30 -Dlinux_strip_binary=1 \
31 -Drelease_extra_cflags="$CFLAGS" \
32 -Dproprietary_codecs=1 \
33 -Dffmpeg_branding=Chrome \
34 -Duse_system_libjpeg=1 \
35 -Duse_system_libxslt=1 \
36 -Duse_system_libxml=1 \
37 -Duse_system_bzip2=1 \
38 -Duse_system_zlib=0 \
39 -Duse_system_libpng=1 \
40 -Duse_system_ffmpeg=0 \
41 -Duse_system_yasm=1 \
42 -Duse_system_libevent=1 \
43 -Duse_system_sqlite=0 \
44 -Duse_system_ssl=0 \
45 -Dremove_webcore_debug_symbols=1 \
46 -Duse_gconf=0 \
47 -Duse_cups=0 \
48 -Duse_gnome_keyring=0 \
49 -Duse_kerberos=0 \
50 -Dlinux_link_gnome_keyring=0 \
51 -Denable_webrtc=1 \
52 -Ddisable_nacl=1
53
54 make chrome chrome_sandbox BUILDTYPE=Release
55
56 install -m 0755 -D out/Release/chrome $PKG/usr/lib/chromium/chromium
57 install -m 4555 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/chromium/chromium-sandbox
58 install -m 0644 -D out/Release/*.pak $PKG/usr/lib/chromium
59 install -m 0755 -D out/Release/libffmpegsumo.so $PKG/usr/lib/chromium
60 install -d $PKG/usr/lib/chromium/locales
61 install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/chromium/locales
62 cp -a out/Release/resources $PKG/usr/lib/chromium
63 install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/chromium.1
64
65 for size in 22 24 48 128 256; do
66 install -m 0644 -D chrome/app/theme/chromium/product_logo_${size}.png \
67 $PKG/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
68 done
69
70 install -m 0755 -D $SRC/chromium.sh $PKG/usr/bin/chromium
71 }
|