2011-07-12 15:24:48 +02:00
|
|
|
# Description: Open source version of Google Chrome web browser.
|
|
|
|
# URL: http://chromium.org/
|
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
# Packager: Tadeusz Sosnierz, tadzikes gmail com
|
2016-03-09 05:57:22 +01:00
|
|
|
# Depends on: dbus-glib gperf gtk libevent libexif libgcrypt mesa3d ninja nss pciutils speech-dispatcher xorg-libxscrnsaver xorg-libxt xorg-libxtst yasm
|
2011-07-12 15:24:48 +02:00
|
|
|
|
|
|
|
name=chromium
|
2016-06-07 15:16:45 +02:00
|
|
|
version=51.0.2704.84
|
2015-04-01 09:27:45 +02:00
|
|
|
release=1
|
2015-03-04 12:46:54 +01:00
|
|
|
source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz \
|
|
|
|
$name.sh $name.desktop)
|
2011-07-12 15:24:48 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2014-05-06 09:31:50 +02:00
|
|
|
|
2015-10-17 10:16:26 +02:00
|
|
|
touch chrome/test/data/webui/i18n_process_css_test.html
|
|
|
|
|
2011-07-12 15:24:48 +02:00
|
|
|
export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
|
2012-06-19 21:45:42 +02:00
|
|
|
export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
|
2011-07-12 15:24:48 +02:00
|
|
|
|
2014-08-05 17:04:48 +02:00
|
|
|
build/gyp_chromium build/all.gyp --depth=. \
|
2016-03-07 12:58:47 +01:00
|
|
|
-Duse_sysroot=0 \
|
2015-03-10 16:49:18 +01:00
|
|
|
-Dclang=0 \
|
2014-01-22 23:38:38 +01:00
|
|
|
-Dpython_ver="2.7" \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Dno_strict_aliasing=1 \
|
|
|
|
-Dwerror= \
|
2015-03-04 12:46:54 +01:00
|
|
|
-Dlinux_sandbox_path=/usr/lib/$name/chrome-sandbox \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Dlinux_strip_binary=1 \
|
2014-08-05 17:04:48 +02:00
|
|
|
-Dlinux_use_gold_binary=0 \
|
|
|
|
-Dlinux_use_gold_flags=0 \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Drelease_extra_cflags="$CFLAGS" \
|
|
|
|
-Dproprietary_codecs=1 \
|
2013-01-15 17:53:32 +01:00
|
|
|
-Dffmpeg_branding=Chrome \
|
2014-08-05 17:04:48 +02:00
|
|
|
-Dlibspeechd_h_prefix=speech-dispatcher/ \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Duse_system_libjpeg=1 \
|
|
|
|
-Duse_system_libxslt=1 \
|
|
|
|
-Duse_system_libxml=1 \
|
|
|
|
-Duse_system_bzip2=1 \
|
2012-12-22 13:23:38 +01:00
|
|
|
-Duse_system_zlib=0 \
|
2013-04-13 10:23:57 +02:00
|
|
|
-Duse_system_libpng=0 \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Duse_system_ffmpeg=0 \
|
|
|
|
-Duse_system_yasm=1 \
|
|
|
|
-Duse_system_libevent=1 \
|
|
|
|
-Duse_system_sqlite=0 \
|
|
|
|
-Duse_system_ssl=0 \
|
2016-04-21 18:01:03 +02:00
|
|
|
-Duse_system_icu=0 \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Dremove_webcore_debug_symbols=1 \
|
|
|
|
-Duse_gconf=0 \
|
2012-10-18 14:35:08 +02:00
|
|
|
-Duse_cups=0 \
|
2011-07-12 15:24:48 +02:00
|
|
|
-Duse_gnome_keyring=0 \
|
2013-01-23 10:46:42 +01:00
|
|
|
-Duse_kerberos=0 \
|
2013-05-28 19:11:32 +02:00
|
|
|
-Duse_pulseaudio=0 \
|
2011-07-28 12:18:30 +02:00
|
|
|
-Dlinux_link_gnome_keyring=0 \
|
2013-04-12 02:15:02 +02:00
|
|
|
-Dlinux_link_libpci=1 \
|
|
|
|
-Dlinux_link_libspeechd=1 \
|
2012-10-18 14:35:08 +02:00
|
|
|
-Denable_webrtc=1 \
|
2014-05-13 16:27:56 +02:00
|
|
|
-Ddisable_nacl=1 \
|
2016-04-21 18:01:03 +02:00
|
|
|
-Dicu_use_data_file_flag=1
|
2011-07-12 15:24:48 +02:00
|
|
|
|
2014-08-05 17:04:48 +02:00
|
|
|
ninja -C out/Release chrome chrome_sandbox
|
2011-07-12 15:24:48 +02:00
|
|
|
|
2015-03-04 12:46:54 +01:00
|
|
|
install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
|
|
|
|
install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
|
|
|
|
install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
|
|
|
|
install -d $PKG/usr/lib/$name/locales
|
|
|
|
install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
|
|
|
|
cp -a out/Release/resources $PKG/usr/lib/$name
|
2016-04-11 12:40:39 +02:00
|
|
|
install -m 0644 -D out/Release/chrome.1 $PKG/usr/share/man/man1/$name.1
|
2011-07-12 15:24:48 +02:00
|
|
|
|
2015-03-15 17:33:50 +01:00
|
|
|
# fix v8 natives
|
|
|
|
cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
|
|
|
|
|
2012-08-21 08:31:28 +02:00
|
|
|
for size in 22 24 48 128 256; do
|
2015-03-04 12:46:54 +01:00
|
|
|
install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \
|
|
|
|
$PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
|
2011-07-12 15:24:48 +02:00
|
|
|
done
|
|
|
|
|
2016-05-02 16:48:24 +02:00
|
|
|
# fix icu installation
|
|
|
|
cp -a out/Release/icudtl.dat $PKG/usr/lib/$name
|
|
|
|
|
2015-03-04 12:46:54 +01:00
|
|
|
install -d $PKG/usr/share/pixmaps
|
|
|
|
ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
|
|
|
|
install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
|
|
|
|
install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name
|
2011-07-12 15:24:48 +02:00
|
|
|
}
|