CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
mysql: updated to 5.6.29
[ports/opt-arm.git] / chromium / Pkgfile
CommitLineData
0826c9bd
JB
1# Description: Open source version of Google Chrome web browser.
2# URL: http://chromium.org/
3# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
4# Maintainer: Jose V Beneyto, sepen at crux dot nu
5# Packager: Tadeusz Sosnierz, tadzikes gmail com
e78af32e 6# Depends on: ninja dbus-glib gtk libevent nss xorg-libxscrnsaver xorg-libxtst libgcrypt xorg-libxdamage yasm xorg-libxt gperf speech-dispatcher libdrm libexif pciutils
0826c9bd
JB
7
8name=chromium
6ce72368
VM
9version=46.0.2490.86
10
0826c9bd 11release=1
6a3c14de
VM
12source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz \
13 $name.sh $name.desktop)
0826c9bd
JB
14
15build() {
16 cd $name-$version
17
6ce72368
VM
18 touch chrome/test/data/webui/i18n_process_css_test.html
19
0826c9bd
JB
20 export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
21 export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
22
23 # determine some flags depending on SOC
24 USE_ARMV7=0; USE_ARM_THUMB=0; USE_ARM_NEON=0
25 case $(uname -m) in
26 armv7*) USE_ARMV7=1; USE_ARM_THUMB=1;;
27 esac
28 for flag in $CFLAGS; do
29 case $flag in
30 -mfpu=neon*) USE_ARM_NEON=1;;
31 esac
32 done
33
6a3c14de 34 build/gyp_chromium build/all.gyp --depth=. \
6570d746 35 -Dtarget_arch=arm \
0826c9bd
JB
36 -Darm_float_abi=hard \
37 -Darmv7=$USE_ARMV7 \
38 -Darm_thumb=$USE_ARM_THUMB \
39 -Darm_neon=$USE_ARM_NEON \
40 -Dv8_target_arch=arm \
41 -Dv8_use_arm_eabi_hardfloat=1 \
42 -Dsysroot= \
6a3c14de 43 -Dclang=0 \
6570d746
JB
44 -Dpython_ver="2.7" \
45 -Dno_strict_aliasing=1 \
46 -Dwerror= \
6a3c14de 47 -Dlinux_sandbox_path=/usr/lib/$name/chrome-sandbox \
6570d746 48 -Dlinux_strip_binary=1 \
0826c9bd
JB
49 -Dlinux_use_gold_binary=0 \
50 -Dlinux_use_gold_flags=0 \
0826c9bd
JB
51 -Drelease_extra_cflags="$CFLAGS" \
52 -Dproprietary_codecs=1 \
53 -Dffmpeg_branding=Chrome \
6a3c14de 54 -Dlibspeechd_h_prefix=speech-dispatcher/ \
6570d746
JB
55 -Duse_system_libjpeg=1 \
56 -Duse_system_libxslt=1 \
57 -Duse_system_libxml=1 \
58 -Duse_system_bzip2=1 \
59 -Duse_system_zlib=0 \
60 -Duse_system_libpng=0 \
61 -Duse_system_ffmpeg=0 \
6a3c14de 62 -Duse_system_yasm=1 \
6570d746
JB
63 -Duse_system_libevent=1 \
64 -Duse_system_sqlite=0 \
6a3c14de 65 -Duse_system_ssl=0 \
6570d746
JB
66 -Dremove_webcore_debug_symbols=1 \
67 -Duse_gconf=0 \
68 -Duse_cups=0 \
69 -Duse_gnome_keyring=0 \
0826c9bd
JB
70 -Duse_kerberos=0 \
71 -Duse_pulseaudio=0 \
6570d746 72 -Dlinux_link_gnome_keyring=0 \
0826c9bd
JB
73 -Dlinux_link_libpci=1 \
74 -Dlinux_link_libspeechd=1 \
6570d746 75 -Denable_webrtc=1 \
6a3c14de
VM
76 -Ddisable_nacl=1 \
77 -Dicu_use_data_file_flag=0
0826c9bd 78
6a3c14de 79 ninja -C out/Release chrome chrome_sandbox
0826c9bd 80
6a3c14de
VM
81 install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
82 install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
83 install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
6a3c14de
VM
84 install -d $PKG/usr/lib/$name/locales
85 install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
86 cp -a out/Release/resources $PKG/usr/lib/$name
87 install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/$name.1
0826c9bd 88
6a3c14de
VM
89 # fix v8 natives
90 cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
0826c9bd
JB
91
92 for size in 22 24 48 128 256; do
6a3c14de
VM
93 install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \
94 $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
0826c9bd
JB
95 done
96
6a3c14de
VM
97 install -d $PKG/usr/share/pixmaps
98 ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
99 install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
100 install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name
0826c9bd 101}