diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-05-06 08:18:45 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-05-06 08:19:15 -0500 |
commit | b6c00fd50fb0e2166f1856e9813c512d6f20714f (patch) | |
tree | f656096a3b02cb41efa5504e2b8e66239cae96d6 /testing/chromium/APKBUILD | |
parent | fab2389fa813a1d3d7441d733fd8adb2144d1cac (diff) | |
download | aports-b6c00fd50fb0e2166f1856e9813c512d6f20714f.tar.bz2 aports-b6c00fd50fb0e2166f1856e9813c512d6f20714f.tar.xz |
testing/chromium: new aport, not actually enabled on any architectures yet
Diffstat (limited to 'testing/chromium/APKBUILD')
-rw-r--r-- | testing/chromium/APKBUILD | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/testing/chromium/APKBUILD b/testing/chromium/APKBUILD new file mode 100644 index 0000000000..3cff4c6acd --- /dev/null +++ b/testing/chromium/APKBUILD @@ -0,0 +1,94 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: Unmaintained <unmaintained@alpinelinux.org> +pkgname=chromium +pkgver=13.0.754.0 +pkgrel=0 +pkgdesc="chromium web browser" +url="http://www.chromium.org/" +arch="" +#arch="x86 x86_64" +license="BSD" +depends= +depends_dev="alsa-lib-dev libevent-dev libpng-dev jpeg-dev cairo-dev cups-dev mesa-dev + dbus-glib-dev gtk+-dev libxml2-dev freetype-dev + libxslt-dev libxtst-dev icu-dev flac-dev speex-dev + hunspell-dev libxinerama-dev" +makedepends="$depends_dev xdg-utils yasm gperf" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://build.chromium.org/official/chromium-$pkgver.tar.bz2 + chromium-c99math.patch + chromium-futimens.patch + chromium-uclibc-resolv.patch + chromium-dlfcn.patch + chromium-yasm.patch + chromium-no-mit-screensaver.patch + chromium-ubacktrace.patch + chromium-tcmalloc.patch + chromium-no-sbrk.patch + chromium-stdstring.patch" + +_builddir="$srcdir"/chromium-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + + chromium_arch=ia32 + test ${CARCH} = x86_64 && chromium_arch=x64 + + msg "chromium architecture is ${chromium_arch}" + GYP_DEFINES="\ + 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}' \ + release_extra_libs='-lubacktrace' \ + 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=1 \ + use_system_ssl=0 \ + use_gconf=0 \ + use_gnome_keyring=0 \ + remoting=0 \ + target_arch=${chromium_arch}" + export GYP_DEFINES + + msg "setting up makefiles" + python build/gyp_chromium -f make --depth=. build/all.gyp + + msg "building chrome and chrome_sandbox targets" + make BUILDTYPE=Release chrome chrome_sandbox || return 1 +} + +package() { + cd "$_builddir" +} + +md5sums="85d73864cc3b78dab29f8851965fc5fa chromium-13.0.754.0.tar.bz2 +320d611dba59a881a4f178df743c4912 chromium-c99math.patch +1328245f1f21cf3abf54223ed06a70f4 chromium-futimens.patch +4a391028c9d1b8930fc299b6af0767d8 chromium-uclibc-resolv.patch +768d2ca4daa2db611fd4aeb561701f4e chromium-dlfcn.patch +76cb0975e631d54fb57bd298041cec05 chromium-yasm.patch +f8c8711a358d43ecbd8e1859aa71cfa0 chromium-no-mit-screensaver.patch +a020a7ccb8207e115ad8c010c6f7d712 chromium-ubacktrace.patch +014dd7f7a9decb1d89c0d72f0258ca96 chromium-tcmalloc.patch +e6302ae2635dc4d0c75c32e97a4bd3b0 chromium-no-sbrk.patch +eb05d2763beaa02e20ddeaf51dadf327 chromium-stdstring.patch" |