[Frugalware-git] frugalware-current: chromium-browser-4.0.249.78-1-i686 * new package * closes FS#3843 * added some patches * added own custom desktop file

Devil505 devil505linux at gmail.com
Fri Jan 29 11:47:26 CET 2010


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b66ae9cbbaafa5f4a1c591e52df8b53aee797b72

commit b66ae9cbbaafa5f4a1c591e52df8b53aee797b72
Author: Devil505 <devil505linux at gmail.com>
Date:   Fri Jan 29 11:45:43 2010 +0100

chromium-browser-4.0.249.78-1-i686
* new package
* closes FS#3843
* added some patches
* added own custom desktop file

diff --git a/source/gnome-extra/chromium-browser/FrugalBuild b/source/gnome-extra/chromium-browser/FrugalBuild
new file mode 100644
index 0000000..8c29a8c
--- /dev/null
+++ b/source/gnome-extra/chromium-browser/FrugalBuild
@@ -0,0 +1,81 @@
+# Compiling Time: 2.50 SBU
+# Maintainer: Devil505 <devil505linux at gmail.com>
+
+pkgname=chromium-browser
+pkgver=4.0.249.78
+pkgrel=1
+pkgdesc='An open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web'
+url='http://www.chromium.org/'
+depends=('nss' 'gconf' 'alsa-lib' 'hicolor-icon-theme' 'libxslt' 'ffmpeg')
+makedepends=('python' 'perl' 'gperf')
+license=('BSD')
+groups=('gnome-extra')
+archs=('i686')
+_F_gnome_iconcache="y"
+Finclude gnome-scriptlet
+up2date="Flasttar http://ftp.frugalware.org/pub/other/people/devil505/snapshots/$pkgname/"
+source=(http://ftp.frugalware.org/pub/other/people/devil505/snapshots/$pkgname/$pkgname-$pkgver.tar.bz2  \
+        $pkgname.desktop $pkgname.sh  \
+        drop_sse2.patch ffmpeg_branding_mime.patch libpng-1.4.patch)
+sha1sums=('e8ba3aa5f698341e521ecb7a9b47eaf90a3fcf4d' \
+          '78ed8913b8a598de6a9e45d206973a846dbe8a51' \
+          'e06de4aee77b3deb77e3b08ebb175ec02da42ced' \
+          '48c08d66c0c210cb8261207ef077157cdb1a12fb' \
+          '0c0cdd36beb0663a74136a98b501ab5e2d256d3a' \
+          '5e20f6b7e276ab300aa8d037de073703aa02d5a3')
+
+build() {
+        Fcd
+
+        export GYP_GENERATORS='make'
+        export BUILDTYPE='Release'
+        export GYP_DEFINES="gcc_version=44 \
+                no_strict_aliasing=1 \
+                linux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
+                linux_strip_binary=1 \
+                release_extra_cflags='${CFLAGS}' \
+                ffmpeg_branding=Chrome \
+                use_system_libjpeg=1 \
+                use_system_libxml=1 \
+                use_system_libxslt=1 \
+                use_system_bzip2=1 \
+                use_system_libpng=1 \
+                use_system_ffmpeg=1 \
+                werror="
+
+        Fpatchall
+
+        export PATH=./depot_tools/:$PATH
+        gclient.py runhooks --force || Fdie
+
+        cd src || Fdie
+        make chrome chrome_sandbox || Fdie
+
+	Fmkdir usr/lib/chromium
+        Fexerel out/Release/chrome usr/lib/chromium/chromium
+        Finstallrel 4755 out/Release/chrome_sandbox usr/lib/chromium/chromium-sandbox
+	Ffileschown usr/lib/chromium/chromium-sandbox root root
+        Finstallrel 644 out/Release/chrome.pak usr/lib/chromium/chrome.pak
+
+        Fln /usr/lib/libavcodec.so.52 /usr/lib/chromium/libavcodec.so.52
+        Fln /usr/lib/libavformat.so.52 /usr/lib/chromium/libavformat.so.52
+        Fln /usr/lib/libavutil.so.50 /usr/lib/chromium/libavutil.so.50
+
+        cp -a out/Release/locales out/Release/resources  \
+	$Fdestdir/usr/lib/chromium/ || Fdie
+        find $Fdestdir/usr/lib/chromium/ -name '*.d' -type f -delete
+        Finstallrel 644 out/Release/chrome.1 usr/share/man/man1/chromium.1
+
+        Finstall 644 $pkgname.desktop usr/share/applications/$pkgname.desktop
+        for size in 16 32 48 256; do
+                install -m 0644 -D \
+                        chrome/app/theme/chromium/product_logo_${size}.png \
+                        $Fdestdir/usr/share/icons/hicolor/${size}x${size}/apps/$pkgname.png
+        done
+
+        Fexe $pkgname.sh usr/bin/$pkgname
+
+        Fdocrel LICENSE
+	Fbuild_gnome_scriptlet
+}
+
diff --git a/source/gnome-extra/chromium-browser/chromium-browser.desktop b/source/gnome-extra/chromium-browser/chromium-browser.desktop
new file mode 100644
index 0000000..c3b4d2a
--- /dev/null
+++ b/source/gnome-extra/chromium-browser/chromium-browser.desktop
@@ -0,0 +1,115 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+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-browser %U
+Terminal=false
+Icon=chromium-browser
+Type=Application
+Categories=Application;Network;WebBrowser;
+MimeType=text/html;text/xml;application/xhtml_xml;
+
diff --git a/source/gnome-extra/chromium-browser/chromium-browser.sh b/source/gnome-extra/chromium-browser/chromium-browser.sh
new file mode 100644
index 0000000..14205a8
--- /dev/null
+++ b/source/gnome-extra/chromium-browser/chromium-browser.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+export CHROME_WRAPPER=/usr/lib/chromium/chromium
+export CHROME_DESKTOP=chromium-browser.desktop
+exec /usr/lib/chromium/chromium $@
diff --git a/source/gnome-extra/chromium-browser/drop_sse2.patch b/source/gnome-extra/chromium-browser/drop_sse2.patch
new file mode 100644
index 0000000..41da934
--- /dev/null
+++ b/source/gnome-extra/chromium-browser/drop_sse2.patch
@@ -0,0 +1,18 @@
+--- src/build/common.gypi	2009-12-17 01:57:20.000000000 +0100
++++ src/build/common.gypi	2009-12-17 02:37:05.663568345 +0100
+@@ -652,15 +652,6 @@
+             # used during computation does not change depending on how the
+             # compiler optimized the code, since the value is always kept
+             # in its specified precision.
+-            'conditions': [
+-              ['branding=="Chromium"', {
+-                'cflags': [
+-                  '-march=pentium4',
+-                  '-msse2',
+-                  '-mfpmath=sse',
+-                ],
+-              }],
+-            ],
+             'cflags': [
+               '-m32',
+             ],
diff --git a/source/gnome-extra/chromium-browser/ffmpeg_branding_mime.patch b/source/gnome-extra/chromium-browser/ffmpeg_branding_mime.patch
new file mode 100644
index 0000000..506146a
--- /dev/null
+++ b/source/gnome-extra/chromium-browser/ffmpeg_branding_mime.patch
@@ -0,0 +1,29 @@
+--- src/net/base/mime_util.cc	2009-12-13 19:09:26.467781732 +0100
++++ src/net/base/mime_util.cc	2009-12-13 19:10:14.967931404 +0100
+@@ -188,7 +188,6 @@
+   "audio/ogg",
+   "application/ogg",
+
+-#if defined(GOOGLE_CHROME_BUILD)
+   // MPEG-4.
+   "video/mp4",
+   "video/x-m4v",
+@@ -198,7 +197,6 @@
+   // MP3.
+   "audio/mp3",
+   "audio/x-mp3",
+-#endif
+ };
+
+ // List of supported codecs when passed in with <source type="...">.
+@@ -206,10 +204,8 @@
+ // Refer to http://wiki.whatwg.org/wiki/Video_type_parameters#Browser_Support
+ // for more information.
+ static const char* const supported_media_codecs[] = {
+-#if defined(GOOGLE_CHROME_BUILD)
+   "avc1",
+   "mp4a",
+-#endif
+   "theora",
+   "vorbis",
+ };
diff --git a/source/gnome-extra/chromium-browser/libpng-1.4.patch b/source/gnome-extra/chromium-browser/libpng-1.4.patch
new file mode 100644
index 0000000..111b5e8
--- /dev/null
+++ b/source/gnome-extra/chromium-browser/libpng-1.4.patch
@@ -0,0 +1,43 @@
+--- src/app/gfx/codec/orig/png_codec.cc	2009-11-19 12:14:46.000000000 -0800
++++ src/app/gfx/codec/png_codec.cc	2009-11-19 12:15:56.000000000 -0800
+@@ -350,9 +350,9 @@
+     return false;
+
+   *png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,
+-                                    png_voidp_NULL,
+-                                    png_error_ptr_NULL,
+-                                    png_error_ptr_NULL);
++                                    0,
++                                    0,
++                                    0);
+   if (!*png_ptr)
+     return false;
+
+@@ -574,9 +574,9 @@
+   DCHECK(input_color_components * w <= row_byte_width);
+
+   png_struct* png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
+-                                                png_voidp_NULL,
+-                                                png_error_ptr_NULL,
+-                                                png_error_ptr_NULL);
++                                                0,
++                                                0,
++                                                0);
+   if (!png_ptr)
+     return false;
+   png_info* info_ptr = png_create_info_struct(png_ptr);
+--- src/third_party/WebKit/WebCore/platform/image-encoders/skia/orig/PNGImageEncoder.cpp	2009-11-19 13:39:07.000000000 -0800
++++ src/third_party/WebKit/WebCore/platform/image-encoders/skia/PNGImageEncoder.cpp	2009-11-19 13:39:25.000000000 -0800
+@@ -130,9 +130,9 @@
+     }
+
+     png_struct* pngPtr = png_create_write_struct(PNG_LIBPNG_VER_STRING,
+-                                                 png_voidp_NULL,
+-                                                 png_error_ptr_NULL,
+-                                                 png_error_ptr_NULL);
++                                                 0,
++                                                 0,
++                                                 0);
+     if (!pngPtr)
+         return false;
+


More information about the Frugalware-git mailing list