summaryrefslogtreecommitdiffstats
path: root/testing/chromium/APKBUILD
blob: 16cebf7877883136ebd5447a803b2553f5abe8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# 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-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}' \
		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"