aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/APKBUILD
blob: d6c9bd03cb307e9ebf3ec809789c5ef37f8481d8 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xulrunner
pkgver=19.0
_ffoxver=$pkgver
pkgrel=0
pkgdesc="runtime environment for xul-based applications"
url="http://developer.mozilla.org/en/XULRunner"
arch="all"
license="GPL LGPL MPL"
depends=
depends_dev="nspr-dev
	     nss-dev
	     gtk+-dev
	     dbus-glib-dev
	     alsa-lib-dev
	     gstreamer-dev
	     gst-plugins-base-dev
	     libvorbis-dev
	     libogg-dev
	     libtheora-dev
	     wireless-tools-dev
	     libnotify-dev
	     libevent-dev
	     libvpx-dev
	     libxt-dev
	     libjpeg-turbo-dev
	     bzip2-dev
	     hunspell-dev
	     startup-notification-dev
	     sqlite-dev
	     libidl-dev
	     mesa-dev"
makedepends="$depends_dev 

	     autoconf2.13

	     python
	     zip
	     yasm
	     paxctl

	     autoconf
	     automake
	     libtool"
install=""
options=""
subpackages="$pkgname-dev"
# http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/${pkgver}/source/${pkgname}-${pkgver}.source.tar.bz2
source="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}/source/firefox-${_ffoxver}.source.tar.bz2

	mozconfig
	0002-Use-C99-math-isfinite.patch
	0003-xulrunner-jemalloc-aslr.patch
	uclibc-malloc_usable_size.patch
	cairo.patch
	getchar.patch
	sysconf.patch
	"
# help our shared-object scanner to find the libs
ldpath="/usr/lib/xulrunner-$pkgver"

_builddir="${srcdir}/mozilla-release"
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

	cp "${srcdir}/mozconfig" .mozconfig
}

build() {
	cd "$_builddir"

	# mozilla's buildsystem is on drugs, so we just kill our CFLAGS and hope
	# for the best. --nenolod
	unset CFLAGS
	unset CXXFLAGS

	make -j1 -f client.mk build \
		MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1
}

package() {
	cd "$_builddir"

	# only used for startupcache creation.
	paxctl -c -m */dist/bin/xpcshell || return 1

	make -j1 DESTDIR="$pkgdir" -f client.mk install || return 1

	# make install does not install xpt.py but its needed by firefox
	mkdir -p "$pkgdir"/usr/lib/xulrunner-devel-$pkgver/sdk/bin
	cp xpcom/typelib/xpt/tools/xpt.py \
		"$pkgdir"/usr/lib/xulrunner-devel-$pkgver/sdk/bin/

	msg "Setting up compatibility symlinks..."
	ln -sf /usr/lib/xulrunner-${pkgver}/libxul.so "${pkgdir}"/usr/lib/libxul.so
	ln -sf /usr/lib/xulrunner-${pkgver}/libxpcom.so "${pkgdir}"/usr/lib/libxpcom.so
	ln -sf /usr/lib/xulrunner-${pkgver}/libmozalloc.so "${pkgdir}"/usr/lib/libmozalloc.so
}

dev() {
	replaces="xulrunner"
	depends="xulrunner"

	mkdir -p "${subpkgdir}"/usr/lib
	mv "${pkgdir}"/usr/lib/xulrunner-devel-${pkgver} "${subpkgdir}"/usr/lib
	mv "${pkgdir}"/usr/lib/pkgconfig "${subpkgdir}"/usr/lib
	mv "${pkgdir}"/usr/include "${subpkgdir}"/usr/include
}

md5sums="3dc732b6ce177792b43324f4bc7164d8  firefox-19.0.source.tar.bz2
8fb048f27e87abc9fd45b80135f5c784  mozconfig
f43c1f0ae57aa8289b130c6de8caf3ce  0002-Use-C99-math-isfinite.patch
e8b3a22d670241bb5c038729ac49a975  0003-xulrunner-jemalloc-aslr.patch
d3d1e831185da3a3e9ddf56c33449c70  uclibc-malloc_usable_size.patch
6a3942d96c7ce3c63251761cc12c8349  cairo.patch
a7b33d8b75306f225e3a8d1a8a403736  getchar.patch
090ea4daeedfff2915da62a738c7e81d  sysconf.patch"
sha256sums="645eaba5ee9a2728799822f6f79d91bfd4c3dade5141db2e0a606c85eec589f4  firefox-19.0.source.tar.bz2
36c59e9086aeef16935c82f1c806c799cdcc64a80b48b90813489ba2fb434fb3  mozconfig
2f319883300f2aef180bfb80221151fcbb29344a5a0a086d6ad1d80005daf039  0002-Use-C99-math-isfinite.patch
324d5cd26858ad21bb4680db8635fb3fd014bf00a637bf9fb2b118c2925fc5e7  0003-xulrunner-jemalloc-aslr.patch
70d93003a95d3a89bd3193d46a278f094a6b983aa660781e4090d58cf1c488a2  uclibc-malloc_usable_size.patch
519be436124cf9716d3df732e633f5d73c5c9da79bb48447e1d9724baf9b430f  cairo.patch
f30846e4b4c86dc1f7308e5e2a76951f51e2932d70b08ed8fe3129c53bb527d3  getchar.patch
15fa203c6a253b9e0229ff5bd0d1c88a4ab4ee2aef34ae88fdf7fe06ba7962f8  sysconf.patch"
sha512sums="6b9f93dd5cdb5a5a02072cf6dd43952c78f379f530963e630551904e746c15e343527b1095f327a7d3af05df7007fdf88fc1cd618bf07d93abbf5aabbb82a727  firefox-19.0.source.tar.bz2
6323d129f6f5edd5de0ca60a9092bf2d9ec7443b5353ca2cf89db757fbfbf9cf5c475b6f6fc00d5b9024071e37a4f8614fdb212773b3af3c32e12b256fef6378  mozconfig
9a6666a3b637549411ea562c9d0d6d617ed48327d0f9e4e64d27f43774c218e6c5cf5fa99d4b339a5a0f89b854a18079392eba0dafc3419adbd4cdd5d71d3f26  0002-Use-C99-math-isfinite.patch
46caf196a9f68614c42b793befc7dc85438d30ce47c06ccc925aae14728d67b0d29192edba430c0a6237192e6d51db26dfc6e6190bc01937a828effd8136f37b  0003-xulrunner-jemalloc-aslr.patch
9845400d4a3c5cc4f0c7a80292c555f8192ba5093f59baed86d63c575aa50d73597588a6236948c25619e9dbaad72508abd91edf16374904d0d8345a94755ffc  uclibc-malloc_usable_size.patch
66c6cb290153e4333ffda0407230a7801149864a69eac6adc130653e7cff28b1fbfd9f20cf0cfd4ee35ae3eb8b2dc6357a48024a8e7005218b44d58efbdcf483  cairo.patch
a4692b9a8b5239523486cf10bf0debd54e8d2da6f994775a3e46dc6da71591b7ed698ceea30cd9f4bb30ca1e9b93b3eb18b8055bba5c5f6171e019a5b5cc29f8  getchar.patch
b47db40d6b54fa3bdb650d680e1468dc16f323c3cf48e4f867373bcdfde82d2dbb85910262503285ba3bde8a5757d74a17c1ae6db31116bc8a42e05ab2bb20d6  sysconf.patch"