2011-06-18 17:45:42 +02:00
|
|
|
# Template file for 'chromium'
|
|
|
|
pkgname=chromium
|
2012-05-09 19:22:12 +02:00
|
|
|
version=18.0.1025.168
|
2012-02-22 17:38:34 +01:00
|
|
|
wrksrc=$pkgname
|
|
|
|
create_wrksrc=yes
|
2012-05-09 19:22:12 +02:00
|
|
|
build_wrksrc=${pkgname}-${version}
|
2012-02-22 17:38:34 +01:00
|
|
|
distfiles="
|
|
|
|
http://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$version.tar.bz2
|
2012-05-09 19:22:12 +02:00
|
|
|
http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/$version/naclsdk_linux.bz2"
|
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-02-22 17:38:34 +01:00
|
|
|
checksum="
|
2012-05-09 19:22:12 +02:00
|
|
|
1f1fc7bd8066835844a465f9d60c49c21173ff559c40e5d113fe9c4627fc18b9
|
|
|
|
f9c5bc8ef4e251769a0609cbca1692682140dc93364c2558aaade3c404f3d987"
|
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."
|
|
|
|
|
|
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
|
|
|
|
|
|
|
Add_dependency build pkg-config
|
2012-03-09 02:44:30 +01:00
|
|
|
Add_dependency build which
|
2012-02-22 17:38:34 +01:00
|
|
|
Add_dependency build unzip
|
2011-06-18 17:45:42 +02:00
|
|
|
Add_dependency build yasm
|
2011-07-03 17:59:09 +02:00
|
|
|
Add_dependency build flex
|
|
|
|
Add_dependency build gperf
|
2012-02-22 17:38:34 +01:00
|
|
|
Add_dependency build perl ">=0"
|
|
|
|
Add_dependency build python ">=0"
|
2012-03-09 02:44:30 +01:00
|
|
|
Add_dependency build libelf-devel
|
2012-02-22 17:38:34 +01:00
|
|
|
Add_dependency build mit-krb5-devel
|
2011-06-18 17:45:42 +02:00
|
|
|
Add_dependency build libXrender-devel
|
|
|
|
Add_dependency build libXScrnSaver-devel
|
2012-02-22 17:38:34 +01:00
|
|
|
Add_dependency build libXcomposite-devel
|
2012-03-09 02:44:30 +01:00
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build libXi-devel
|
2011-06-18 17:45:42 +02:00
|
|
|
Add_dependency build gtk+-devel
|
|
|
|
Add_dependency build libevent-devel
|
|
|
|
Add_dependency build icu-devel
|
|
|
|
Add_dependency build nss-devel
|
|
|
|
Add_dependency build libxslt-devel
|
|
|
|
Add_dependency build alsa-lib-devel
|
|
|
|
Add_dependency build dbus-glib-devel
|
|
|
|
Add_dependency build libXdamage-devel
|
|
|
|
Add_dependency build libXtst-devel
|
|
|
|
Add_dependency build pam-devel
|
2011-07-03 17:22:37 +02:00
|
|
|
Add_dependency build libgnome-keyring-devel
|
2011-08-10 11:21:31 +02:00
|
|
|
Add_dependency build libvpx-devel
|
2011-08-10 11:45:57 +02:00
|
|
|
Add_dependency build speex-devel
|
2011-08-10 15:47:28 +02:00
|
|
|
Add_dependency build libwebp-devel
|
2011-09-19 11:25:31 +02:00
|
|
|
Add_dependency build pulseaudio-devel
|
2012-02-22 17:38:34 +01:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
Add_dependency build zlib32
|
|
|
|
Add_dependency build libstdc++32
|
|
|
|
fi
|
|
|
|
|
2012-05-09 19:22:12 +02:00
|
|
|
Add_dependency run desktop-file-utils
|
|
|
|
Add_dependency run hicolor-icon-theme
|
|
|
|
|
2012-02-22 17:38:34 +01:00
|
|
|
pre_configure() {
|
2012-05-09 19:22:12 +02:00
|
|
|
# Add missing include that defines OS_POSIX
|
|
|
|
sed -i '1 i\
|
|
|
|
#include "build/build_config.h"' \
|
|
|
|
chrome/browser/diagnostics/diagnostics_main.cc
|
|
|
|
|
|
|
|
# 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-05-09 19:22:12 +02:00
|
|
|
# Unpack nacl, file is a real POSIX tar archive compressed with bzip2.
|
|
|
|
tar xf $wrksrc/naclsdk_linux -C $wrksrc
|
2012-02-22 17:38:34 +01:00
|
|
|
|
2012-05-09 19:22:12 +02:00
|
|
|
ln -s $wrksrc/pepper_${version%%.*}/toolchain/linux_x86_newlib \
|
|
|
|
native_client/toolchain/linux_x86_newlib
|
2012-02-22 17:38:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2011-06-18 17:45:42 +02:00
|
|
|
# We need to disable system_ssl until "next protocol negotiation" support is
|
|
|
|
# available in our nss package.
|
|
|
|
# (See https://bugzilla.mozilla.org/show_bug.cgi?id=547312)
|
|
|
|
#
|
|
|
|
# XXX: Disable CUPS until a package exists.
|
2012-02-22 17:38:34 +01:00
|
|
|
build/gyp_chromium -f make build/all.gyp --depth=. \
|
2011-06-18 17:45:42 +02:00
|
|
|
-Dwerror= \
|
|
|
|
-Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
|
2012-02-22 17:38:34 +01:00
|
|
|
-Drelease_extra_cflags="$CFLAGS" \
|
2011-06-18 17:45:42 +02:00
|
|
|
-Dffmpeg_branding=Chrome \
|
|
|
|
-Dproprietary_codecs=1 \
|
|
|
|
-Duse_system_libjpeg=1 \
|
|
|
|
-Duse_system_libxslt=1 \
|
|
|
|
-Duse_system_libxml=1 \
|
|
|
|
-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_icu=1 \
|
|
|
|
-Duse_system_xdg_utils=1 \
|
2011-08-10 11:45:57 +02:00
|
|
|
-Duse_system_vpx=1 \
|
|
|
|
-Duse_system_speex=1 \
|
2011-08-10 15:47:28 +02:00
|
|
|
-Duse_system_libwebp=1 \
|
2011-06-18 17:45:42 +02:00
|
|
|
-Duse_gconf=0 \
|
2012-02-22 17:38:34 +01:00
|
|
|
-Duse_cups=0
|
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-02-22 17:38:34 +01:00
|
|
|
vinstall out/Release/libppGoogleNaClPluginChrome.so 755 usr/lib/${pkgname}
|
|
|
|
vcopy "out/Release/nacl_irt_x86_*.nexe" usr/lib/${pkgname}
|
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
|
|
|
}
|