From eab66d430b0de157efa56a9d3cefca2e72010a58 Mon Sep 17 00:00:00 2001 From: Cecil Date: Sat, 19 Feb 2011 17:09:21 -0800 Subject: chromium:initial inclusion. --- abs/extra/community/chromium/PKGBUILD | 111 +++++++++++++++++++++++++ abs/extra/community/chromium/chromium.desktop | 113 ++++++++++++++++++++++++++ abs/extra/community/chromium/chromium.install | 11 +++ abs/extra/community/chromium/chromium.sh | 4 + 4 files changed, 239 insertions(+) create mode 100644 abs/extra/community/chromium/PKGBUILD create mode 100644 abs/extra/community/chromium/chromium.desktop create mode 100644 abs/extra/community/chromium/chromium.install create mode 100755 abs/extra/community/chromium/chromium.sh diff --git a/abs/extra/community/chromium/PKGBUILD b/abs/extra/community/chromium/PKGBUILD new file mode 100644 index 0000000..f844692 --- /dev/null +++ b/abs/extra/community/chromium/PKGBUILD @@ -0,0 +1,111 @@ +# $Id: PKGBUILD 109507 2011-02-10 15:37:06Z ibiru $ +# Contributor: Pierre Schmitz +# Contributor: Jan "heftig" Steffens +# Maintainer: Daniel J Griffiths + +pkgname=chromium +pkgver=9.0.597.94 +pkgrel=1 +pkgdesc='The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser.' +arch=('i686' 'x86_64') +url='http://www.chromium.org/' +license=('BSD') +depends=('nss' 'gconf' 'alsa-lib' 'xdg-utils' 'hicolor-icon-theme' 'bzip2' 'libevent' 'libxss' 'libxtst' 'ttf-dejavu') +makedepends=('python2' 'perl' 'gperf' 'yasm' 'mesa' 'libgnome-keyring' 'libcups') +provides=('chromium-browser') +conflicts=('chromium-browser') +install=chromium.install +source=("http://build.chromium.org/buildbot/official/chromium-${pkgver}.tar.bz2" + 'chromium.desktop' 'chromium.sh') +md5sums=('41386b3df743575f2325c4c64d6d7bc7' + 'c5e849fcb1101149977355c99d8ff78f' + '096a46ef386817988250d2d7bddd1b34') + +build() { + cd ${srcdir}/chromium-${pkgver} + +### Configure + + echo 'Use python2 instead of python...' + find . -type f -exec \ + sed -E 's#(/usr/bin/python)$#\12#g;s#(/usr/bin/python2)\.4$#\1#g' -i {} \; + # There are still a lot of relative calls which need a workaround + mkdir ${srcdir}/python2-path + ln -s /usr/bin/python2 ${srcdir}/python2-path/python + export PATH="${srcdir}/python2-path/:${PATH}" + + # 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 + + build/gyp_chromium -f make build/all.gyp --depth=. \ + -Dgcc_version=45 \ + -Dno_strict_aliasing=1 \ + -Dwerror= \ + -Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \ + -Dlinux_strip_binary=1 \ + -Drelease_extra_cflags="${CFLAGS}" \ + -Dffmpeg_branding=Chrome \ + -Dproprietary_codecs=1 \ + -Duse_system_libjpeg=1 \ + -Duse_system_libxslt=0 \ + -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 \ + $([ "${CARCH}" == 'i686' ] && echo '-Ddisable_sse2=1') + +### Build + + make chrome chrome_sandbox BUILDTYPE=Release +} + +package() { + cd ${srcdir}/chromium-${pkgver} + + install -m 0755 -D out/Release/chrome ${pkgdir}/usr/lib/chromium/chromium + + install -m 4555 -o root -g root -D out/Release/chrome_sandbox \ + ${pkgdir}/usr/lib/chromium/chromium-sandbox + + install -m 0644 -D out/Release/chrome.pak \ + ${pkgdir}/usr/lib/chromium/chrome.pak + + install -m 0644 -D out/Release/resources.pak \ + ${pkgdir}/usr/lib/chromium/resources.pak + + install -m 0755 -D out/Release/libffmpegsumo.so \ + ${pkgdir}/usr/lib/chromium/libffmpegsumo.so + +# these links are only needed when building with system ffmpeg +# ln -s /usr/lib/libavcodec.so.52 ${pkgdir}/usr/lib/chromium/ +# ln -s /usr/lib/libavformat.so.52 ${pkgdir}/usr/lib/chromium/ +# ln -s /usr/lib/libavutil.so.50 ${pkgdir}/usr/lib/chromium/ + + cp -a out/Release/locales out/Release/resources \ + ${pkgdir}/usr/lib/chromium/ + + find ${pkgdir}/usr/lib/chromium/ -name '*.d' -type f -delete + + install -m 0644 -D out/Release/chrome.1 \ + ${pkgdir}/usr/share/man/man1/chromium.1 + + install -m 0644 -D ${srcdir}/chromium.desktop \ + ${pkgdir}/usr/share/applications/chromium.desktop + + for size in 16 22 24 32 48 64 128 256; do + install -m 0644 -D \ + chrome/app/theme/chromium/product_logo_${size}.png \ + ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png + done + + install -m 0755 -D ${srcdir}/chromium.sh ${pkgdir}/usr/bin/chromium + + install -m 0644 -D LICENSE ${pkgdir}/usr/share/licenses/chromium/LICENSE +} + +# vim:set sw=2 sts=2 et: diff --git a/abs/extra/community/chromium/chromium.desktop b/abs/extra/community/chromium/chromium.desktop new file mode 100644 index 0000000..4bb6981 --- /dev/null +++ b/abs/extra/community/chromium/chromium.desktop @@ -0,0 +1,113 @@ +[Desktop Entry] +Version=1.0 +Name=Chromium +# Only KDE 4 seems to use GenericName, so we reuse the KDE strings. +# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. +GenericName=Web Browser +GenericName[ar]=متصفح الشبكة +GenericName[bg]=Уеб браузър +GenericName[ca]=Navegador web +GenericName[cs]=WWW prohlížeč +GenericName[da]=Browser +GenericName[de]=Web-Browser +GenericName[el]=Περιηγητής ιστού +GenericName[en_GB]=Web Browser +GenericName[es]=Navegador web +GenericName[et]=Veebibrauser +GenericName[fi]=WWW-selain +GenericName[fr]=Navigateur Web +GenericName[gu]=વેબ બ્રાઉઝર +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hu]=Webböngésző +GenericName[it]=Browser Web +GenericName[ja]=ウェブブラウザ +GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ +GenericName[ko]=웹 브라우저 +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Tīmekļa pārlūks +GenericName[ml]=വെബ് ബ്രൌസര്‍ +GenericName[mr]=वेब ब्राऊजर +GenericName[nb]=Nettleser +GenericName[nl]=Webbrowser +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador da Internet +GenericName[ro]=Navigator de Internet +GenericName[ru]=Веб-браузер +GenericName[sl]=Spletni brskalnik +GenericName[sv]=Webbläsare +GenericName[ta]=இணைய உலாவி +GenericName[th]=เว็บเบราว์เซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[zh_CN]=网页浏览器 +GenericName[zh_HK]=網頁瀏覽器 +GenericName[zh_TW]=網頁瀏覽器 +# Not translated in KDE, from Epiphany 2.26.1-0ubuntu1. +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[fil]=Web Browser +GenericName[hr]=Web preglednik +GenericName[id]=Browser Web +GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର +GenericName[sk]=WWW prehliadač +GenericName[sr]=Интернет прегледник +GenericName[te]=మహాతల అన్వేషి +GenericName[vi]=Bộ duyệt Web +# Gnome and KDE 3 uses Comment. +Comment=Access the Internet +Comment[ar]=الدخول إلى الإنترنت +Comment[bg]=Достъп до интернет +Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন +Comment[ca]=Accedeix a Internet +Comment[cs]=Přístup k internetu +Comment[da]=Få adgang til internettet +Comment[de]=Internetzugriff +Comment[el]=Πρόσβαση στο Διαδίκτυο +Comment[en_GB]=Access the Internet +Comment[es]=Accede a Internet. +Comment[et]=Pääs Internetti +Comment[fi]=Käytä internetiä +Comment[fil]=I-access ang Internet +Comment[fr]=Accéder à Internet +Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો +Comment[he]=גישה אל האינטרנט +Comment[hi]=इंटरनेट तक पहुंच स्थापित करें +Comment[hr]=Pristup Internetu +Comment[hu]=Internetelérés +Comment[id]=Akses Internet +Comment[it]=Accesso a Internet +Comment[ja]=インターネットにアクセス +Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ +Comment[ko]=인터넷 연결 +Comment[lt]=Interneto prieiga +Comment[lv]=Piekļūt internetam +Comment[ml]=ഇന്റര്‍‌നെറ്റ് ആക്‌സസ് ചെയ്യുക +Comment[mr]=इंटरनेटमध्ये प्रवेश करा +Comment[nb]=Gå til Internett +Comment[nl]=Verbinding maken met internet +Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ +Comment[pl]=Skorzystaj z internetu +Comment[pt]=Aceder à Internet +Comment[pt_BR]=Acessar a internet +Comment[ro]=Accesaţi Internetul +Comment[ru]=Доступ в Интернет +Comment[sk]=Prístup do siete Internet +Comment[sl]=Dostop do interneta +Comment[sr]=Приступите Интернету +Comment[sv]=Gå ut på Internet +Comment[ta]=இணையத்தை அணுகுதல் +Comment[te]=ఇంటర్నెట్‌ను ఆక్సెస్ చెయ్యండి +Comment[th]=เข้าถึงอินเทอร์เน็ต +Comment[tr]=İnternet'e erişin +Comment[uk]=Доступ до Інтернету +Comment[vi]=Truy cập Internet +Comment[zh_CN]=访问互联网 +Comment[zh_HK]=連線到網際網路 +Comment[zh_TW]=連線到網際網路 +Exec=chromium %U +Terminal=false +Icon=chromium +Type=Application +Categories=GTK;Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml_xml; diff --git a/abs/extra/community/chromium/chromium.install b/abs/extra/community/chromium/chromium.install new file mode 100644 index 0000000..e70c054 --- /dev/null +++ b/abs/extra/community/chromium/chromium.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/abs/extra/community/chromium/chromium.sh b/abs/extra/community/chromium/chromium.sh new file mode 100755 index 0000000..e1c3388 --- /dev/null +++ b/abs/extra/community/chromium/chromium.sh @@ -0,0 +1,4 @@ +#!/bin/sh +export CHROME_WRAPPER=/usr/lib/chromium/chromium +export CHROME_DESKTOP=chromium.desktop +exec /usr/lib/chromium/chromium "$@" -- cgit v0.12