summaryrefslogtreecommitdiff
path: root/chromium/Pkgfile
blob: 68f50e73362ed713ee1c30efc1bcfd4eabefcedb (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: ninja dbus-glib gtk libevent nss xorg-libxscrnsaver xorg-libxtst libgcrypt xorg-libxdamage yasm xorg-libxt gperf speech-dispatcher libdrm libexif pciutils
    6 
    7 name=chromium
    8 version=46.0.2490.86
    9 release=1
   10 source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz \
   11 	$name.sh $name.desktop)
   12 
   13 build() {
   14   cd $name-$version
   15 
   16   touch chrome/test/data/webui/i18n_process_css_test.html
   17 
   18   export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
   19   export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
   20 
   21   build/gyp_chromium build/all.gyp --depth=. \
   22         -Dclang=0 \
   23         -Dpython_ver="2.7" \
   24 	-Dno_strict_aliasing=1 \
   25 	-Dwerror= \
   26 	-Dlinux_sandbox_path=/usr/lib/$name/chrome-sandbox \
   27 	-Dlinux_strip_binary=1 \
   28         -Dlinux_use_gold_binary=0 \
   29         -Dlinux_use_gold_flags=0 \
   30 	-Drelease_extra_cflags="$CFLAGS" \
   31 	-Dproprietary_codecs=1 \
   32         -Dffmpeg_branding=Chrome \
   33         -Dlibspeechd_h_prefix=speech-dispatcher/ \
   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=0 \
   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         -Duse_pulseaudio=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         -Dicu_use_data_file_flag=0
   57 
   58   ninja -C out/Release chrome chrome_sandbox
   59 
   60   install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
   61   install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
   62   install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
   63   install -d $PKG/usr/lib/$name/locales
   64   install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
   65   cp -a out/Release/resources $PKG/usr/lib/$name
   66   install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/$name.1
   67 
   68   # fix v8 natives
   69   cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
   70 
   71   for size in 22 24 48 128 256; do
   72     install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \
   73       $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
   74   done
   75 
   76   install -d $PKG/usr/share/pixmaps
   77   ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
   78   install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
   79   install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name
   80 }

Generated by cgit