aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/APKBUILD
blob: c5210bf13988197b05f36c0a0a1d2ff1f9e3ce31 (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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xulrunner
pkgver=23.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"
source="ftp://ftp.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.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
	stat.patch
	moz-libc-filename.patch
	mozilla-831688.patch
	no-stab.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="794e0139c4df0392146353c655d94bb9  firefox-23.0.source.tar.bz2
faf16153ed2cf1e5b163fed9168cb34f  mozconfig
f43c1f0ae57aa8289b130c6de8caf3ce  0002-Use-C99-math-isfinite.patch
e8b3a22d670241bb5c038729ac49a975  0003-xulrunner-jemalloc-aslr.patch
d3d1e831185da3a3e9ddf56c33449c70  uclibc-malloc_usable_size.patch
6a3942d96c7ce3c63251761cc12c8349  cairo.patch
507742325de8687529e4e81e31132ddf  getchar.patch
760c05f196bb6f152d7f895742e6aa02  sysconf.patch
623cd16618c57f037ab4132dfe8694b0  stat.patch
10600ca1b36ff177bf4e301056553cf4  moz-libc-filename.patch
01f1e791aba776c36c41922c97e74d02  mozilla-831688.patch
cb9c8a02dfff2421e8380eb0b2954eb6  no-stab.patch"
sha256sums="2d64bd12cfa80c57e4a7f4156c7b4fde725a6173dfe48e2fac12e1927faf563e  firefox-23.0.source.tar.bz2
ccb0e3841188952b6f9a3e1766b31eec49534080e656ade029be97df6a8c9674  mozconfig
2f319883300f2aef180bfb80221151fcbb29344a5a0a086d6ad1d80005daf039  0002-Use-C99-math-isfinite.patch
324d5cd26858ad21bb4680db8635fb3fd014bf00a637bf9fb2b118c2925fc5e7  0003-xulrunner-jemalloc-aslr.patch
70d93003a95d3a89bd3193d46a278f094a6b983aa660781e4090d58cf1c488a2  uclibc-malloc_usable_size.patch
519be436124cf9716d3df732e633f5d73c5c9da79bb48447e1d9724baf9b430f  cairo.patch
d14357bf44f702d94b8d3ed79bdf81f6271370745c1ac8fa83522bd98be4adc4  getchar.patch
2dacfceeb78d352321a62c950eb50837307c57720719ea6424681c3f5b0ed1fd  sysconf.patch
41d55a1d807c84e624da8c258410e8689559d108a4dc56118c6c4755dee514df  stat.patch
b2f72d12a2df3bc84d2582d70ec9fc26099bc87c26c303ec5c08ac2e26fe35db  moz-libc-filename.patch
bada0870d4ce77fd955bd8b451b8eb38dd4c614dc3619887db86d040e6ad5bb9  mozilla-831688.patch
d51a7708188e59b59fa5df4cec60bdd87e7b25e19fe13cfae7c578218c44d773  no-stab.patch"
sha512sums="da1e07a1350d17d11847da89fd9320c81579bba2d589cf5330570f2955ec93bf8aded3937023d0f708f5deccfe74acec620fdb6989a2e1d769e568bcac21a1f3  firefox-23.0.source.tar.bz2
914e0dfc9a531f6fbff07a9e250e1146371cbffb5eed7fffaa2c5643f8e7759d62d314b3c2dbc5cf9031b66001bbf05892c9ae5aa2b9e77ffe704837a2938f12  mozconfig
9a6666a3b637549411ea562c9d0d6d617ed48327d0f9e4e64d27f43774c218e6c5cf5fa99d4b339a5a0f89b854a18079392eba0dafc3419adbd4cdd5d71d3f26  0002-Use-C99-math-isfinite.patch
46caf196a9f68614c42b793befc7dc85438d30ce47c06ccc925aae14728d67b0d29192edba430c0a6237192e6d51db26dfc6e6190bc01937a828effd8136f37b  0003-xulrunner-jemalloc-aslr.patch
9845400d4a3c5cc4f0c7a80292c555f8192ba5093f59baed86d63c575aa50d73597588a6236948c25619e9dbaad72508abd91edf16374904d0d8345a94755ffc  uclibc-malloc_usable_size.patch
66c6cb290153e4333ffda0407230a7801149864a69eac6adc130653e7cff28b1fbfd9f20cf0cfd4ee35ae3eb8b2dc6357a48024a8e7005218b44d58efbdcf483  cairo.patch
18f0696bf4d032c83041110b83ae6531b48474a778fc1deade3b06ba2ae1bfcc9891059287bfb78317c2f5ddc88f5b7ce957312acdb63d4902a57e0b40eb6520  getchar.patch
0e8d21cd0cec34d7825e59f05669010f9f4bcfb94ca1f5788495cdbd25e9c845d4ca8fa028e599f3464bc4d7827a833708d4513c5082ffbcb5be423318048077  sysconf.patch
e975bc5a0f77e29a2afb848cd0c164f9c0edabf0d96472d6b23e2b08fa2bbe3b51ee63c16c986e7fc9bc243c666b23c37d0b939cbf4c258b9dce5c3ee77d6f55  stat.patch
136e3fc82b77562f53b09e5aa1d81f9db43196b6a1a9bbf271651d022837cb565a6807ce62ce7e99cc40db87edbba2b8b6c198761ac6ebee091c0615e10067dd  moz-libc-filename.patch
ffb152ff1e80ccb2e215bb2c8542ec912f97a0c6e90bd8b2e3e033b4d909ba788e0aaf8b2bf2c37e1f9592d4105d623801bbccbeb58f580362fb2cd0da52c60b  mozilla-831688.patch
22e3291aba71deac0fbfaee9f062daabaeb86d606aa3b8a010da51e4ad6d874960b6ad2b6cfbff8769c5ff1cda9d4f0e519c00c3d899fd7d6a3eb1d2be0fd594  no-stab.patch"