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

Generated by cgit