2011-06-18 17:45:42 +02:00
|
|
|
# Template file for 'chromium'
|
|
|
|
pkgname=chromium
|
2012-06-27 10:17:40 +02:00
|
|
|
version=20.0.1132.43
|
|
|
|
revision=1
|
2012-02-22 17:38:34 +01:00
|
|
|
wrksrc=$pkgname
|
|
|
|
create_wrksrc=yes
|
2012-05-22 12:44:51 +02:00
|
|
|
create_srcdir=yes
|
|
|
|
build_requires=27
|
2012-05-09 19:22:12 +02:00
|
|
|
build_wrksrc=${pkgname}-${version}
|
2012-05-23 18:26:56 +02:00
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
2012-06-27 10:17:40 +02:00
|
|
|
makedepends="pkg-config which unzip yasm flex gperf perl python
|
|
|
|
libudev-devel>=138 libpng-devel>=1.5.10 libgcrypt-devel libelf-devel
|
|
|
|
mit-krb5-devel libXrender-devel libXScrnSaver-devel libXcomposite-devel
|
|
|
|
libX11-devel libXi-devel gtk+-devel libevent-devel nss-devel alsa-lib-devel
|
|
|
|
dbus-glib-devel libXdamage-devel libXtst-devel pam-devel libgnome-keyring-devel
|
|
|
|
libvpx-devel speex-devel libwebp-devel pulseaudio-devel cups-devel
|
|
|
|
hunspell-devel libflac-devel subversion"
|
2012-05-23 20:58:45 +02:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
makedepends="${makedepends} gcc-multilib"
|
|
|
|
fi
|
|
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
2011-06-18 17:45:42 +02:00
|
|
|
short_desc="Google's attempt at creating a safer, faster, and more stable browser"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.chromium.org/"
|
|
|
|
license="BSD"
|
2012-06-28 08:34:00 +02:00
|
|
|
_url_base="http://commondatastorage.googleapis.com"
|
2012-06-27 10:17:40 +02:00
|
|
|
distfiles="
|
2012-06-28 08:34:00 +02:00
|
|
|
${_url_base}/chromium-browser-official/$pkgname-$version.tar.bz2
|
|
|
|
${_url_base}/nativeclient-mirror/nacl/nacl_sdk/$version/naclsdk_linux.bz2"
|
2012-02-22 17:38:34 +01:00
|
|
|
checksum="
|
2012-06-27 10:17:40 +02:00
|
|
|
c21bdee0ec136102e10c527a0d98e3a29e40406d8f7eb63e8e0ac23801722824
|
|
|
|
aa836ba493e659f028e8624764ba7662ef4eccd609be4c6812a7901eaf63f6e4"
|
2011-06-18 17:45:42 +02:00
|
|
|
long_desc="
|
|
|
|
Chromium is an open-source browser project that aims to build a safer,
|
|
|
|
faster, and more stable way for all Internet users to experience the web.
|
|
|
|
|
|
|
|
Chromium serves as a base for Google Chrome, which is Chromium rebranded
|
|
|
|
(name and logo) with very few additions such as usage tracking and an
|
|
|
|
auto-updater system.
|
|
|
|
|
|
|
|
This package contains the Chromium browser."
|
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
pre_configure() {
|
2012-05-09 19:22:12 +02:00
|
|
|
# http://code.google.com/p/chromium/issues/detail?id=109527
|
|
|
|
sed -i 's|glib/gutils.h|glib.h|' ui/base/l10n/l10n_util.cc
|
2012-02-22 17:38:34 +01:00
|
|
|
|
2012-06-28 08:34:00 +02:00
|
|
|
#XXX: nacl enabled only for x86_64 (can't build it on i686)
|
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
# Unpack nacl, its a POSIX tar archive compressed with bzip2.
|
|
|
|
tar xf $wrksrc/naclsdk_linux -C $wrksrc
|
2012-02-22 17:38:34 +01:00
|
|
|
|
2012-06-28 08:34:00 +02:00
|
|
|
ln -s $wrksrc/pepper_${version%%.*}/toolchain/linux_x86_newlib \
|
|
|
|
native_client/toolchain/linux_x86_newlib
|
|
|
|
fi
|
2012-02-22 17:38:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2012-06-28 08:34:00 +02:00
|
|
|
local _nonacl
|
|
|
|
if [ "$XBPS_MACHINE" = "i686" ]; then
|
|
|
|
_nonacl="-Ddisable_nacl=1"
|
|
|
|
fi
|
2012-02-22 17:38:34 +01:00
|
|
|
build/gyp_chromium -f make build/all.gyp --depth=. \
|
2012-05-22 12:44:51 +02:00
|
|
|
-Dwerror= -Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
|
|
|
|
-Drelease_extra_cflags="$CFLAGS" -Dlinux_use_gold_binary=0 \
|
|
|
|
-Dlinux_use_gold_flags=0 -Dffmpeg_branding=Chrome \
|
|
|
|
-Dproprietary_codecs=1 -Duse_system_libjpeg=1 \
|
|
|
|
-Duse_system_libxml=0 -Duse_system_bzip2=1 \
|
|
|
|
-Duse_system_zlib=1 -Duse_system_libpng=1 \
|
|
|
|
-Duse_system_ffmpeg=0 -Duse_system_yasm=1 \
|
|
|
|
-Duse_system_libevent=1 -Duse_system_ssl=0 \
|
|
|
|
-Duse_system_xdg_utils=1 -Duse_system_vpx=1 \
|
|
|
|
-Duse_system_speex=1 -Duse_system_libwebp=1 \
|
2012-06-28 08:34:00 +02:00
|
|
|
-Duse_hunspell=1 -Duse_system_flac=1 -Duse_gconf=0 ${_nonacl}
|
2011-08-10 11:21:31 +02:00
|
|
|
}
|
2011-06-18 17:45:42 +02:00
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
do_build() {
|
2011-08-10 11:21:31 +02:00
|
|
|
make BUILDTYPE=Release ${makejobs} chrome chrome_sandbox
|
2011-06-18 17:45:42 +02:00
|
|
|
}
|
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
do_install() {
|
2011-08-10 11:21:31 +02:00
|
|
|
vinstall out/Release/chrome 755 usr/lib/${pkgname} ${pkgname}
|
|
|
|
vinstall out/Release/chrome_sandbox 4755 usr/lib/${pkgname} ${pkgname}-sandbox
|
|
|
|
vinstall out/Release/chrome.pak 644 usr/lib/${pkgname}
|
|
|
|
vinstall out/Release/resources.pak 644 usr/lib/${pkgname}
|
|
|
|
vinstall out/Release/libffmpegsumo.so 755 usr/lib/${pkgname}
|
2012-06-28 08:34:00 +02:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
vinstall out/Release/libppGoogleNaClPluginChrome.so 755 \
|
|
|
|
usr/lib/${pkgname}
|
|
|
|
vinstall out/Release/nacl_helper 755 usr/lib/$pkgname
|
|
|
|
vinstall out/Release/nacl_helper_bootstrap 755 usr/lib/$pkgname
|
|
|
|
vcopy "out/Release/nacl_irt_*.nexe" usr/lib/${pkgname}
|
|
|
|
fi
|
2011-08-10 11:21:31 +02:00
|
|
|
|
|
|
|
for f in locales resources; do
|
|
|
|
vcopy out/Release/${f} usr/lib/chromium
|
|
|
|
done
|
2011-06-18 17:45:42 +02:00
|
|
|
find ${DESTDIR}/usr/lib/chromium/ -name '*.d' -type f -delete
|
2011-08-10 11:21:31 +02:00
|
|
|
vinstall out/Release/chrome.1 644 usr/share/man/man1 chromium.1
|
|
|
|
vinstall ${FILESDIR}/chromium.desktop 644 usr/share/applications
|
2011-06-18 17:45:42 +02:00
|
|
|
for size in 16 22 24 32 48 64 128 256; do
|
2011-09-19 11:25:31 +02:00
|
|
|
install -Dm644 "chrome/app/theme/chromium/product_logo_${size}.png" \
|
2011-06-18 17:45:42 +02:00
|
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
|
|
|
|
done
|
2011-08-10 11:21:31 +02:00
|
|
|
vinstall ${FILESDIR}/chromium.sh 755 usr/bin chromium
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
2011-06-18 17:45:42 +02:00
|
|
|
}
|