opt/chromium/Pkgfile

76 lines
2.5 KiB
Plaintext
Raw Normal View History

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
2014-02-06 12:21:31 +01:00
# Depends on: dbus-glib gtk libevent nss xorg-libxscrnsaver xorg-libxtst libgcrypt xorg-libxdamage yasm xorg-libxt gperf speech-dispatcher libdrm
2011-07-12 15:24:48 +02:00
name=chromium
version=33.0.1750.152
2013-11-05 20:21:00 +01:00
release=1
source=(http://commondatastorage.googleapis.com/chromium-browser-official/$name-$version.tar.xz \
$name.sh rungn.patch)
2011-07-12 15:24:48 +02:00
build() {
cd $name-$version
# patch for supplemental_includes
patch -p0 -i $SRC/rungn.patch
# fix for speech-dispatcher >= 0.8
sed -e 's|<<(libspeechd_h_prefix)libspeechd.h>|<speech-dispatcher/libspeechd.h>|' \
-i build/linux/system.gyp
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
build/gyp_chromium -f make build/all.gyp --depth=. \
-Dpython_ver="2.7" \
2011-07-12 15:24:48 +02:00
-Dno_strict_aliasing=1 \
-Dwerror= \
-Dlinux_sandbox_path=/usr/lib/chromium/chrome-sandbox \
2011-07-12 15:24:48 +02:00
-Dlinux_strip_binary=1 \
-Drelease_extra_cflags="$CFLAGS" \
-Dproprietary_codecs=1 \
2013-01-15 17:53:32 +01:00
-Dffmpeg_branding=Chrome \
2011-07-12 15:24:48 +02:00
-Duse_system_libjpeg=1 \
-Duse_system_libxslt=1 \
-Duse_system_libxml=1 \
-Duse_system_bzip2=1 \
-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 \
-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 \
-Dlinux_link_libpci=1 \
-Dlinux_link_libspeechd=1 \
2012-10-18 14:35:08 +02:00
-Denable_webrtc=1 \
-Ddisable_nacl=1
2011-07-12 15:24:48 +02:00
make chrome chrome_sandbox BUILDTYPE=Release
install -m 0755 -D out/Release/chrome $PKG/usr/lib/chromium/chromium
install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/chromium/chrome-sandbox
2011-07-12 15:24:48 +02:00
install -m 0644 -D out/Release/*.pak $PKG/usr/lib/chromium
install -m 0755 -D out/Release/libffmpegsumo.so $PKG/usr/lib/chromium
install -d $PKG/usr/lib/chromium/locales
install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/chromium/locales
cp -a out/Release/resources $PKG/usr/lib/chromium
install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/chromium.1
for size in 22 24 48 128 256; do
2011-07-12 15:24:48 +02:00
install -m 0644 -D chrome/app/theme/chromium/product_logo_${size}.png \
$PKG/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
done
install -m 0755 -D $SRC/chromium.sh $PKG/usr/bin/chromium
}