New package: chromium-unstable (17.x). alternative to pkg chromium.
This commit is contained in:
parent
4d84fe7776
commit
4548bf8989
5 changed files with 328 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!-- This dictionary sets that we _always_ want
|
||||
the "chromium-unstable" package to be the default chromium
|
||||
package, over other alternatives. -->
|
||||
<key>virtual-pkgver</key>
|
||||
<string>chromium-0</string>
|
||||
<key>target-pkgpattern</key>
|
||||
<string>chromium-unstable>=0</string>
|
||||
</dict>
|
||||
</plist>
|
113
srcpkgs/chromium-unstable/files/chromium.desktop
Normal file
113
srcpkgs/chromium-unstable/files/chromium.desktop
Normal file
|
@ -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;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
4
srcpkgs/chromium-unstable/files/chromium.sh
Normal file
4
srcpkgs/chromium-unstable/files/chromium.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
export CHROME_WRAPPER=/usr/lib/chromium/chromium
|
||||
export CHROME_DESKTOP=chromium.desktop
|
||||
exec /usr/lib/chromium/chromium "$@"
|
40
srcpkgs/chromium-unstable/patches/printing_fix.patch
Normal file
40
srcpkgs/chromium-unstable/patches/printing_fix.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
--- chrome/browser/printing/print_dialog_gtk.cc 2011-10-14 08:27:56.000000000 +0000
|
||||
+++ chrome/browser/printing/print_dialog_gtk.cc 2011-10-13 10:13:12.000000000 +0000
|
||||
@@ -28,6 +28,12 @@
|
||||
|
||||
namespace {
|
||||
|
||||
+// CUPS ColorModel attribute and values.
|
||||
+const char kCMYK[] = "CMYK";
|
||||
+const char kCUPSColorModel[] = "cups-ColorModel";
|
||||
+const char kColor[] = "Color";
|
||||
+const char kGrayscale[] = "Grayscale";
|
||||
+
|
||||
// CUPS Duplex attribute and values.
|
||||
const char kCUPSDuplex[] = "cups-Duplex";
|
||||
const char kDuplexNone[] = "None";
|
||||
@@ -187,11 +193,19 @@
|
||||
gtk_print_settings_set_n_copies(gtk_settings_, copies);
|
||||
gtk_print_settings_set_collate(gtk_settings_, collate);
|
||||
|
||||
- std::string color_value;
|
||||
- std::string color_setting_name;
|
||||
- printing::GetColorModelForMode(color, &color_setting_name, &color_value);
|
||||
- gtk_print_settings_set(gtk_settings_, color_setting_name.c_str(),
|
||||
- color_value.c_str());
|
||||
+ const char* color_mode;
|
||||
+ switch (color) {
|
||||
+ case printing::COLOR:
|
||||
+ color_mode = kColor;
|
||||
+ break;
|
||||
+ case printing::CMYK:
|
||||
+ color_mode = kCMYK;
|
||||
+ break;
|
||||
+ default:
|
||||
+ color_mode = kGrayscale;
|
||||
+ break;
|
||||
+ }
|
||||
+ gtk_print_settings_set(gtk_settings_, kCUPSColorModel, color_mode);
|
||||
|
||||
if (duplex_mode != printing::UNKNOWN_DUPLEX_MODE) {
|
||||
const char* cups_duplex_mode = NULL;
|
158
srcpkgs/chromium-unstable/template
Normal file
158
srcpkgs/chromium-unstable/template
Normal file
|
@ -0,0 +1,158 @@
|
|||
# Template file for 'chromium-unstable'
|
||||
__pkgname=chromium
|
||||
pkgname=${__pkgname}-unstable
|
||||
version=17.0.916.0
|
||||
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="davehome <davehome@redthumb.info.tm>"
|
||||
homepage="http://www.chromium.org/"
|
||||
license="BSD"
|
||||
checksum=8c4b1c3746ac4283b2dbf7b2e51247baada6371d6c97f2b6db13185724fb4f86
|
||||
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 (unstable build)."
|
||||
|
||||
replaces="chromium>=0"
|
||||
provides="chromium-$version"
|
||||
|
||||
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
||||
|
||||
Add_dependency run libgcc
|
||||
Add_dependency run glibc
|
||||
Add_dependency run libstdc++
|
||||
Add_dependency run libX11
|
||||
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
|
||||
Add_dependency run libvpx
|
||||
Add_dependency run libspeex
|
||||
Add_dependency run libwebp
|
||||
Add_dependency run libpulseaudio
|
||||
|
||||
Add_dependency run desktop-file-utils
|
||||
Add_dependency run hicolor-icon-theme
|
||||
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build yasm
|
||||
Add_dependency build flex
|
||||
Add_dependency build gperf
|
||||
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
|
||||
Add_dependency build libgnome-keyring-devel
|
||||
Add_dependency build libvpx-devel
|
||||
Add_dependency build speex-devel
|
||||
Add_dependency build libwebp-devel
|
||||
Add_dependency build pulseaudio-devel
|
||||
|
||||
wrksrc=chromium-$version
|
||||
|
||||
do_configure()
|
||||
{
|
||||
# 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.
|
||||
build/gyp_chromium --depth=. -fmake build/all.gyp \
|
||||
-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 \
|
||||
-Duse_system_vpx=1 \
|
||||
-Duse_system_speex=1 \
|
||||
-Duse_system_libwebp=1 \
|
||||
-Duse_gconf=0 \
|
||||
-Duse_cups=0 \
|
||||
-Ddisable_nacl=1
|
||||
}
|
||||
|
||||
do_build()
|
||||
{
|
||||
make BUILDTYPE=Release ${makejobs} chrome chrome_sandbox
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
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}
|
||||
#vinstall out/Release/libppGoogleNaClPluginChrome.so 755 usr/lib/${__pkgname}
|
||||
#vcopy "out/Release/nacl_irt_x86_*.nexe" usr/lib/${__pkgname}
|
||||
|
||||
for f in locales resources; do
|
||||
vcopy out/Release/${f} usr/lib/chromium
|
||||
done
|
||||
find ${DESTDIR}/usr/lib/chromium/ -name '*.d' -type f -delete
|
||||
vinstall out/Release/chrome.1 644 usr/share/man/man1 chromium.1
|
||||
vinstall ${FILESDIR}/chromium.desktop 644 usr/share/applications
|
||||
for size in 16 22 24 32 48 64 128 256; do
|
||||
install -Dm644 "chrome/app/theme/chromium/product_logo_${size}.png" \
|
||||
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
|
||||
done
|
||||
vinstall ${FILESDIR}/chromium.sh 755 usr/bin chromium
|
||||
vinstall LICENSE 644 usr/share/licenses/${__pkgname}
|
||||
|
||||
vinstall ${FILESDIR}/chromium-unstable.virtualpkgd \
|
||||
644 etc/xbps/virtualpkg.d chromium-unstable.plist
|
||||
vmkdir etc/xbps/virtualpkg.d.wants
|
||||
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
|
||||
ln -sf ../virtualpkg.d/chromium-unstable.plist .
|
||||
|
||||
}
|
Loading…
Reference in a new issue