mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
Chromium Dev 14 builds and works!
This commit is contained in:
parent
4e4fda7d28
commit
22d6330b19
4 changed files with 288 additions and 0 deletions
158
aur/chromium-dev/PKGBUILD
Normal file
158
aur/chromium-dev/PKGBUILD
Normal file
|
@ -0,0 +1,158 @@
|
||||||
|
# Contributor: Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
|
||||||
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
|
||||||
|
|
||||||
|
# ALARM changes were made to the GYP_DEFINES and CFLAGS and to the
|
||||||
|
# target architecture.
|
||||||
|
|
||||||
|
pkgname=chromium-dev
|
||||||
|
pkgver=14.0.835.8
|
||||||
|
pkgrel=1
|
||||||
|
_buildtype=Release
|
||||||
|
test "x${DEBUG}" = "xyes" && _buildtype=Debug
|
||||||
|
pkgdesc='The open-source project behind Google Chrome (Dev channel)'
|
||||||
|
arch=('armv7h' 'x86_64')
|
||||||
|
url='http://www.chromium.org/'
|
||||||
|
license=('BSD')
|
||||||
|
depends=('alsa-lib' 'xdg-utils' 'hicolor-icon-theme' 'bzip2' 'libevent' 'libxss' 'libpng' 'libjpeg' 'cairo' 'dbus-glib'
|
||||||
|
'glib2' 'gtk2' 'nss' 'nspr' 'ffmpeg' 'libvpx' 'libxml2' 'libxslt' 'libxtst' 'icu')
|
||||||
|
makedepends=('git' 'python2' 'gperf' 'yasm' 'mesa' 'gcc>=4.5.0-6' 'libgnome-keyring')
|
||||||
|
optdepends=('libgnome-keyring')
|
||||||
|
options=()
|
||||||
|
test ${_buildtype} = Debug && options[${#options[@]}]=!strip
|
||||||
|
install="${pkgname}.install"
|
||||||
|
source=(http://build.chromium.org/official/chromium-${pkgver}.tar.bz2
|
||||||
|
${pkgname}.desktop
|
||||||
|
${pkgname}.sh)
|
||||||
|
md5sums=('775b1253214a64fc9eced614870ec374'
|
||||||
|
'4d3824048614dd10fcd83d7e5c8ea091'
|
||||||
|
'eaeaf4a71707d8a767be9a7d467bb809')
|
||||||
|
_use_gconf=0
|
||||||
|
if test -x /usr/bin/gconftool-2; then
|
||||||
|
_use_gconf=1
|
||||||
|
depends[${#depends[@]}]=gconf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Build "ffmpegsumo.so" (0) / Use system ffmpeg (1)
|
||||||
|
_use_ffmpeg_system_libs=0
|
||||||
|
if test $_use_ffmpeg_system_libs = 1; then
|
||||||
|
use_system_ffmpeg="use_system_ffmpeg=1"
|
||||||
|
build_ffmpegsumo="build_ffmpegsumo=0"
|
||||||
|
else
|
||||||
|
use_system_ffmpeg="use_system_ffmpeg=0"
|
||||||
|
build_ffmpegsumo="build_ffmpegsumo=1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/chromium-${pkgver}"
|
||||||
|
|
||||||
|
msg "Patching sources..."
|
||||||
|
|
||||||
|
msg "Save configuration in ~/.config/${pkgname}"
|
||||||
|
sed -e "s/'filename': 'chromium-browser'/'filename': '${pkgname}'/" -e "s/'confdir': 'chromium'/'confdir': '${pkgname}'/" -i chrome/chrome_exe.gypi
|
||||||
|
sed \
|
||||||
|
-e "s/config_dir\.Append(\"chromium\")/config_dir.Append(\"${pkgname}\")/" \
|
||||||
|
-e "s/config_dir\.Append(\"chrome-frame\")/config_dir.Append(\"chrome-frame-${pkgname#chromium-}\")/" \
|
||||||
|
-i chrome/common/chrome_paths_linux.cc
|
||||||
|
msg2 "Done"
|
||||||
|
|
||||||
|
msg "Force usage of python2"
|
||||||
|
#find -type f -a -name '*.py' -exec sed -i -e 's|#![ ]*/usr/bin/python$|#!/usr/bin/python2|' -e 's|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' {} \;
|
||||||
|
#find -type f -a -name '*.gyp*' -exec sed -i -e 's|<!(python |<!(python2 |g' -e "s|'python'|'python2'|g" {} \;
|
||||||
|
rm -rf "${srcdir}"/python
|
||||||
|
mkdir "${srcdir}"/python
|
||||||
|
ln -s /usr/bin/python2 "${srcdir}"/python/python
|
||||||
|
export PATH="${srcdir}"/python:$PATH
|
||||||
|
msg2 "Done"
|
||||||
|
|
||||||
|
msg "Patching Sources Sucessfull"
|
||||||
|
|
||||||
|
msg "Building Chromium..."
|
||||||
|
chromium_arch=arm
|
||||||
|
GYP_DEFINES="\
|
||||||
|
gcc_version=46 \
|
||||||
|
werror= \
|
||||||
|
no_strict_aliasing=1 \
|
||||||
|
linux_sandbox_path=/usr/lib/${pkgname}/chromium-sandbox \
|
||||||
|
linux_sandbox_chrome_path=/usr/lib/${pkgname}/chromium \
|
||||||
|
release_extra_cflags='${CFLAGS}' -DUSE_EABI_HARDFLOAT \
|
||||||
|
disable_nacl=1 \
|
||||||
|
${use_system_ffmpeg} \
|
||||||
|
${build_ffmpegsumo} \
|
||||||
|
use_system_vpx=1 \
|
||||||
|
proprietary_codecs=1 \
|
||||||
|
use_system_libjpeg=1 \
|
||||||
|
use_system_libxslt=1 \
|
||||||
|
use_system_libxml=1 \
|
||||||
|
use_system_bzip2=1 \
|
||||||
|
use_system_zlib=1 \
|
||||||
|
use_system_libpng=1 \
|
||||||
|
use_system_yasm=1 \
|
||||||
|
use_system_libevent=1 \
|
||||||
|
use_system_icu=0 \
|
||||||
|
use_system_ssl=0 \
|
||||||
|
use_gconf=${_use_gconf} \
|
||||||
|
use_cups=0 \
|
||||||
|
target_arch=${chromium_arch} \
|
||||||
|
linux_use_tcmalloc=0 \
|
||||||
|
armv7=1 \
|
||||||
|
arm_neon=0 \
|
||||||
|
arm_fpu=vfpv3-d16 \
|
||||||
|
enable_webrtc=0 \
|
||||||
|
disable_sse2=1"
|
||||||
|
test ${_buildtype} = Release \
|
||||||
|
&& GYP_DEFINES="${GYP_DEFINES} \
|
||||||
|
linux_strip_binary=1 \
|
||||||
|
remove_webcore_debug_symbols=1"
|
||||||
|
export GYP_DEFINES
|
||||||
|
echo "${pkgver} ${GYP_DEFINES}" > current.config
|
||||||
|
if test -f "last.config"; then
|
||||||
|
if cmp last.config current.config; then
|
||||||
|
msg2 "Configuration has not changed, reusing output files..."
|
||||||
|
else
|
||||||
|
msg2 "Configuration has changed, removing output files..."
|
||||||
|
rm -rf out
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
mv current.config last.config
|
||||||
|
python2 build/gyp_chromium -f make --depth=. build/all.gyp
|
||||||
|
make BUILDTYPE=${_buildtype} ${MAKEFLAGS} chrome chrome_sandbox
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/chromium-${pkgver}"
|
||||||
|
|
||||||
|
chromium_home="${pkgdir}/usr/lib/${pkgname}"
|
||||||
|
install -Dm755 -D out/${_buildtype}/chrome "${chromium_home}/chromium"
|
||||||
|
install -Dm4555 -o root -g root -D out/${_buildtype}/chrome_sandbox "${chromium_home}/chromium-sandbox"
|
||||||
|
install -Dm644 out/${_buildtype}/chrome.pak "${chromium_home}/chrome.pak"
|
||||||
|
install -Dm644 out/${_buildtype}/resources.pak "${chromium_home}/resources.pak"
|
||||||
|
|
||||||
|
if test ${_use_ffmpeg_system_libs} = 1; then
|
||||||
|
for n in avcodec avdevice avfilter avformat avutil postproc swscale; do
|
||||||
|
if test -e /usr/lib/lib${n}.so.[0-9]; then
|
||||||
|
f=`echo /usr/lib/lib${n}.so.[0-9]`
|
||||||
|
else
|
||||||
|
f=`echo /usr/lib/lib${n}.so.[0-9][0-9]`
|
||||||
|
fi
|
||||||
|
f=`basename "$f"`
|
||||||
|
ln -s ../$f "${chromium_home}/${f}"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
if test -e out/${_buildtype}/libffmpegsumo.so; then
|
||||||
|
install -Dm644 out/${_buildtype}/libffmpegsumo.so "${chromium_home}/libffmpegsumo.so"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -a out/${_buildtype}/locales out/${_buildtype}/resources "${chromium_home}/"
|
||||||
|
find "${chromium_home}" -type f -name '*.d' -delete
|
||||||
|
install -Dm644 out/${_buildtype}/chrome.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
|
||||||
|
|
||||||
|
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||||
|
for size in 16 22 24 32 48 64 128 256; do
|
||||||
|
install -Dm644 chrome/app/theme/chromium/product_logo_${size}.png "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${pkgname}.png"
|
||||||
|
done
|
||||||
|
install -Dm755 ${srcdir}/${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
|
||||||
|
|
||||||
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
115
aur/chromium-dev/chromium-dev.desktop
Normal file
115
aur/chromium-dev/chromium-dev.desktop
Normal file
|
@ -0,0 +1,115 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Chromium Dev
|
||||||
|
# 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-dev %U
|
||||||
|
Terminal=false
|
||||||
|
Icon=chromium-dev
|
||||||
|
Type=Application
|
||||||
|
Categories=Network;WebBrowser;
|
||||||
|
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
|
||||||
|
StartupNotify=true
|
11
aur/chromium-dev/chromium-dev.install
Normal file
11
aur/chromium-dev/chromium-dev.install
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
post_install() {
|
||||||
|
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
post_install
|
||||||
|
}
|
4
aur/chromium-dev/chromium-dev.sh
Normal file
4
aur/chromium-dev/chromium-dev.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
export CHROME_WRAPPER=/usr/lib/chromium-dev/chromium
|
||||||
|
export CHROME_DESKTOP=chromium-dev.desktop
|
||||||
|
exec /usr/lib/chromium-dev/chromium "$@"
|
Loading…
Reference in a new issue