2011-06-18 15:45:42 +00:00
|
|
|
# Template file for 'chromium'
|
|
|
|
pkgname=chromium
|
2011-10-04 19:48:20 +00:00
|
|
|
version=14.0.835.202
|
2011-10-29 17:43:34 +00:00
|
|
|
revision=1
|
2011-06-18 15:45:42 +00:00
|
|
|
distfiles="http://build.chromium.org/official/$pkgname-$version.tar.bz2"
|
|
|
|
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"
|
2011-10-04 19:48:20 +00:00
|
|
|
checksum=8fcbeda57e45c990257c0ef2a021fad5e58dca1686688ffaccc2d6fa421fe0db
|
2011-06-18 15:45:42 +00: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"
|
|
|
|
|
2011-08-10 09:45:57 +00:00
|
|
|
Add_dependency run libgcc
|
2011-06-18 15:45:42 +00:00
|
|
|
Add_dependency run glibc
|
2011-08-10 09:45:57 +00:00
|
|
|
Add_dependency run libstdc++
|
|
|
|
Add_dependency run libX11
|
2011-06-18 15:45:42 +00:00
|
|
|
Add_dependency run libXrender
|
|
|
|
Add_dependency run libXScrnSaver
|
|
|
|
Add_dependency run libXext
|
|
|
|
Add_dependency run gtk+
|
|
|
|
Add_dependency run pango
|
|
|
|
Add_dependency run gdk-pixbuf
|
|
|
|
Add_dependency run libpng
|
|
|
|
Add_dependency run cairo
|
|
|
|
Add_dependency run freetype
|
|
|
|
Add_dependency run fontconfig
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run libevent
|
|
|
|
Add_dependency run icu-libs
|
|
|
|
Add_dependency run zlib
|
|
|
|
Add_dependency run jpeg
|
|
|
|
Add_dependency run nss
|
|
|
|
Add_dependency run nspr
|
|
|
|
Add_dependency run libxml2
|
|
|
|
Add_dependency run libxslt
|
|
|
|
Add_dependency run bzip2
|
|
|
|
Add_dependency run alsa-lib
|
|
|
|
Add_dependency run expat
|
|
|
|
Add_dependency run libflac
|
|
|
|
Add_dependency run dbus-glib
|
|
|
|
Add_dependency run dbus-libs
|
|
|
|
Add_dependency run libXdamage
|
|
|
|
Add_dependency run libXtst
|
|
|
|
Add_dependency run pam
|
2011-08-10 09:21:31 +00:00
|
|
|
Add_dependency run libvpx
|
2011-08-10 09:45:57 +00:00
|
|
|
Add_dependency run libspeex
|
2011-08-10 13:47:28 +00:00
|
|
|
Add_dependency run libwebp
|
2011-09-19 09:25:31 +00:00
|
|
|
Add_dependency run libpulseaudio
|
2011-06-18 15:45:42 +00:00
|
|
|
|
2011-08-26 08:21:25 +00:00
|
|
|
Add_dependency run desktop-file-utils
|
|
|
|
Add_dependency run hicolor-icon-theme
|
|
|
|
|
2011-06-18 15:45:42 +00:00
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build yasm
|
2011-07-03 15:59:09 +00:00
|
|
|
Add_dependency build flex
|
|
|
|
Add_dependency build gperf
|
2011-10-29 17:43:34 +00:00
|
|
|
#Add_dependency build util-linux # required flock(1)
|
2011-06-18 15:45:42 +00:00
|
|
|
Add_dependency build libXrender-devel
|
|
|
|
Add_dependency build libXScrnSaver-devel
|
|
|
|
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 libflac-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 15:22:37 +00:00
|
|
|
Add_dependency build libgnome-keyring-devel
|
2011-08-10 09:21:31 +00:00
|
|
|
Add_dependency build libvpx-devel
|
2011-08-10 09:45:57 +00:00
|
|
|
Add_dependency build speex-devel
|
2011-08-10 13:47:28 +00:00
|
|
|
Add_dependency build libwebp-devel
|
2011-09-19 09:25:31 +00:00
|
|
|
Add_dependency build pulseaudio-devel
|
2011-06-18 15:45:42 +00:00
|
|
|
|
2011-08-10 09:21:31 +00:00
|
|
|
do_configure()
|
2011-06-18 15:45:42 +00: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.
|
2011-08-10 09:21:31 +00:00
|
|
|
build/gyp_chromium --depth=. -fmake build/all.gyp \
|
2011-06-18 15:45:42 +00:00
|
|
|
-Dwerror= \
|
|
|
|
-Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
|
|
|
|
-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_flac=1 \
|
|
|
|
-Duse_system_icu=1 \
|
|
|
|
-Duse_system_xdg_utils=1 \
|
2011-08-10 09:45:57 +00:00
|
|
|
-Duse_system_vpx=1 \
|
|
|
|
-Duse_system_speex=1 \
|
2011-08-10 13:47:28 +00:00
|
|
|
-Duse_system_libwebp=1 \
|
2011-06-18 15:45:42 +00:00
|
|
|
-Duse_gconf=0 \
|
2011-09-19 09:25:31 +00:00
|
|
|
-Duse_cups=0 \
|
|
|
|
-Ddisable_nacl=1
|
2011-08-10 09:21:31 +00:00
|
|
|
}
|
2011-06-18 15:45:42 +00:00
|
|
|
|
2011-08-10 09:21:31 +00:00
|
|
|
do_build()
|
|
|
|
{
|
|
|
|
make BUILDTYPE=Release ${makejobs} chrome chrome_sandbox
|
2011-06-18 15:45:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2011-08-10 09:21:31 +00: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}
|
2011-09-19 09:25:31 +00:00
|
|
|
#vinstall out/Release/libppGoogleNaClPluginChrome.so 755 usr/lib/${pkgname}
|
|
|
|
#vcopy "out/Release/nacl_irt_x86_*.nexe" usr/lib/${pkgname}
|
2011-08-10 09:21:31 +00:00
|
|
|
|
|
|
|
for f in locales resources; do
|
|
|
|
vcopy out/Release/${f} usr/lib/chromium
|
|
|
|
done
|
2011-06-18 15:45:42 +00:00
|
|
|
find ${DESTDIR}/usr/lib/chromium/ -name '*.d' -type f -delete
|
2011-08-10 09:21:31 +00:00
|
|
|
vinstall out/Release/chrome.1 644 usr/share/man/man1 chromium.1
|
|
|
|
vinstall ${FILESDIR}/chromium.desktop 644 usr/share/applications
|
2011-06-18 15:45:42 +00:00
|
|
|
for size in 16 22 24 32 48 64 128 256; do
|
2011-09-19 09:25:31 +00:00
|
|
|
install -Dm644 "chrome/app/theme/chromium/product_logo_${size}.png" \
|
2011-06-18 15:45:42 +00:00
|
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
|
|
|
|
done
|
2011-08-10 09:21:31 +00:00
|
|
|
vinstall ${FILESDIR}/chromium.sh 755 usr/bin chromium
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
2011-06-18 15:45:42 +00:00
|
|
|
}
|