summaryrefslogtreecommitdiff
path: root/chromium/Pkgfile
blob: 47111a26987e9aee0043b0a4722386c51d5f050c (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=41.0.2272.76
    9 release=2
   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   export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
   17   export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
   18 
   19   build/gyp_chromium build/all.gyp --depth=. \
   20         -Dclang=0 \
   21         -Dpython_ver="2.7" \
   22 	-Dno_strict_aliasing=1 \
   23 	-Dwerror= \
   24 	-Dlinux_sandbox_path=/usr/lib/$name/chrome-sandbox \
   25 	-Dlinux_strip_binary=1 \
   26         -Dlinux_use_gold_binary=0 \
   27         -Dlinux_use_gold_flags=0 \
   28 	-Drelease_extra_cflags="$CFLAGS" \
   29 	-Dproprietary_codecs=1 \
   30         -Dffmpeg_branding=Chrome \
   31         -Dlibspeechd_h_prefix=speech-dispatcher/ \
   32 	-Duse_system_libjpeg=1 \
   33 	-Duse_system_libxslt=1 \
   34 	-Duse_system_libxml=1 \
   35 	-Duse_system_bzip2=1 \
   36 	-Duse_system_zlib=0 \
   37 	-Duse_system_libpng=0 \
   38 	-Duse_system_ffmpeg=0 \
   39 	-Duse_system_yasm=1 \
   40 	-Duse_system_libevent=1 \
   41 	-Duse_system_sqlite=0 \
   42 	-Duse_system_ssl=0 \
   43 	-Dremove_webcore_debug_symbols=1 \
   44 	-Duse_gconf=0 \
   45 	-Duse_cups=0 \
   46 	-Duse_gnome_keyring=0 \
   47         -Duse_kerberos=0 \
   48         -Duse_pulseaudio=0 \
   49 	-Dlinux_link_gnome_keyring=0 \
   50         -Dlinux_link_libpci=1 \
   51         -Dlinux_link_libspeechd=1 \
   52 	-Denable_webrtc=1 \
   53 	-Ddisable_nacl=1 \
   54         -Dicu_use_data_file_flag=0
   55 
   56   ninja -C out/Release chrome chrome_sandbox
   57 
   58   install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
   59   install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
   60   install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
   61   install -m 0755 -D out/Release/libffmpegsumo.so $PKG/usr/lib/$name
   62   install -d $PKG/usr/lib/$name/locales
   63   install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
   64   cp -a out/Release/resources $PKG/usr/lib/$name
   65   install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/$name.1
   66 
   67   # fix v8 natives
   68   cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
   69 
   70   for size in 22 24 48 128 256; do
   71     install -m 0644 -D chrome/app/theme/$name/product_logo_${size}.png \
   72       $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
   73   done
   74 
   75   install -d $PKG/usr/share/pixmaps
   76   ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
   77   install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
   78   install -m 0755 -D $SRC/$name.sh $PKG/usr/bin/$name
   79 }

Generated by cgit