summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/chromium/PKGBUILD
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-02-20 01:09:21 (GMT)
committerCecil <knoppmyth@gmail.com>2011-02-20 01:09:21 (GMT)
commiteab66d430b0de157efa56a9d3cefca2e72010a58 (patch)
tree8586dcfc59e1832654d3099167990eaa7a86a69f /abs/extra/community/chromium/PKGBUILD
parent07f149a478c027d6a675e8e63b85189b16cbfa12 (diff)
downloadlinhes_pkgbuild-eab66d430b0de157efa56a9d3cefca2e72010a58.zip
linhes_pkgbuild-eab66d430b0de157efa56a9d3cefca2e72010a58.tar.gz
linhes_pkgbuild-eab66d430b0de157efa56a9d3cefca2e72010a58.tar.bz2
chromium:initial inclusion.
Diffstat (limited to 'abs/extra/community/chromium/PKGBUILD')
-rw-r--r--abs/extra/community/chromium/PKGBUILD111
1 files changed, 111 insertions, 0 deletions
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 <pierre@archlinux.de>
+# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+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: