aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/APKBUILD
blob: c36ea9dc4d7f7ca0764141eba055a09beec7cf32 (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
157
158
159
160
161
162
163
164
165
166
167
168
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xulrunner
pkgver=24.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
	getchar.patch
	get_nproc.patch
	stat.patch
	moz-libc-filename.patch

	fix-ipc.patch
	fix-media.patch
	fix-netwerk.patch
	fix-tools.patch

	stab.h
	"

# 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 || return 1
	sed -e "s/#${CLIBC}#//g" -i .mozconfig

	cp "$srcdir"/stab.h toolkit/crashreporter/google-breakpad/src/
}

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}/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="06a4c0fe8d3a979aea2fce8d0fdbf328  firefox-24.0.source.tar.bz2
4332546696b520412b0dcf2ba8931c06  mozconfig
f43c1f0ae57aa8289b130c6de8caf3ce  0002-Use-C99-math-isfinite.patch
e8b3a22d670241bb5c038729ac49a975  0003-xulrunner-jemalloc-aslr.patch
d3d1e831185da3a3e9ddf56c33449c70  uclibc-malloc_usable_size.patch
507742325de8687529e4e81e31132ddf  getchar.patch
2f9e38b58c68295d5ee175e132d8ed2a  get_nproc.patch
623cd16618c57f037ab4132dfe8694b0  stat.patch
10600ca1b36ff177bf4e301056553cf4  moz-libc-filename.patch
a070f213f0e52d7873b46206dd96159c  fix-ipc.patch
1068c9a7ee92544ffd7903a5b11fc1cf  fix-media.patch
41520f6c013807e6af2c377276efb843  fix-netwerk.patch
af742df21c2912bd458d018f52f68482  fix-tools.patch
4383d038b8d8411ea46f4a109197c19e  stab.h"
sha256sums="86a6efa501e1b106b597a8506757f3a2db9d3a5cfcc61ea29a9ad0c834bea83b  firefox-24.0.source.tar.bz2
a5ab8c12da5f266458e7f456205a58ea3bedcce717dae9e2087cf59db9598a64  mozconfig
2f319883300f2aef180bfb80221151fcbb29344a5a0a086d6ad1d80005daf039  0002-Use-C99-math-isfinite.patch
324d5cd26858ad21bb4680db8635fb3fd014bf00a637bf9fb2b118c2925fc5e7  0003-xulrunner-jemalloc-aslr.patch
70d93003a95d3a89bd3193d46a278f094a6b983aa660781e4090d58cf1c488a2  uclibc-malloc_usable_size.patch
d14357bf44f702d94b8d3ed79bdf81f6271370745c1ac8fa83522bd98be4adc4  getchar.patch
7724b729cb81b0cbd4a51d529ba8b73dcd25229d46ccb89b9cef2c38d867098b  get_nproc.patch
41d55a1d807c84e624da8c258410e8689559d108a4dc56118c6c4755dee514df  stat.patch
b2f72d12a2df3bc84d2582d70ec9fc26099bc87c26c303ec5c08ac2e26fe35db  moz-libc-filename.patch
e6e7aa8d8875f4ed6d8acfc9668f906d8a290d24e25c58d6d5c3ecc5ab3d6778  fix-ipc.patch
1f9d36e7468f5f157406174f81c0133d41952e2207f93a4a987ecc178cd9b0ac  fix-media.patch
9681d00c44f6b3873eb97d0a7277c04710da956aa4d08c100cf62c24d03d6a5d  fix-netwerk.patch
10bf85bbe8a336b0edfe9216b4d281464cef7194c05984a82a2a9ba5b459406a  fix-tools.patch
960d82bbfdc88c95f5cb4f2e1c1bf23dae7519b3b7203914d7b3ddbff1ba4c28  stab.h"
sha512sums="541a26eb939a2cf9a2ec4f4469fdc12008f097c4f615cb196299cbdb855931df5aea288f842dce57e2bb0069ec76e2a748823474e30a6077a9138db5ddb3ee46  firefox-24.0.source.tar.bz2
4e3a392276d82a1006351a673b853bd6e7a57f4ae9ec5806edd9e7c8d51edcbaeb32111423088231a7e887490b755ec9701508fe58564fe69dda7eee7b147551  mozconfig
9a6666a3b637549411ea562c9d0d6d617ed48327d0f9e4e64d27f43774c218e6c5cf5fa99d4b339a5a0f89b854a18079392eba0dafc3419adbd4cdd5d71d3f26  0002-Use-C99-math-isfinite.patch
46caf196a9f68614c42b793befc7dc85438d30ce47c06ccc925aae14728d67b0d29192edba430c0a6237192e6d51db26dfc6e6190bc01937a828effd8136f37b  0003-xulrunner-jemalloc-aslr.patch
9845400d4a3c5cc4f0c7a80292c555f8192ba5093f59baed86d63c575aa50d73597588a6236948c25619e9dbaad72508abd91edf16374904d0d8345a94755ffc  uclibc-malloc_usable_size.patch
18f0696bf4d032c83041110b83ae6531b48474a778fc1deade3b06ba2ae1bfcc9891059287bfb78317c2f5ddc88f5b7ce957312acdb63d4902a57e0b40eb6520  getchar.patch
7ecb250f47df178aacdaf630c3240362a32e13d400461d7799f1fc2d25fbc47043c03ef19ffdeab517e6f9812fe81007460f1485bde243a9d16053dcee37779e  get_nproc.patch
e975bc5a0f77e29a2afb848cd0c164f9c0edabf0d96472d6b23e2b08fa2bbe3b51ee63c16c986e7fc9bc243c666b23c37d0b939cbf4c258b9dce5c3ee77d6f55  stat.patch
136e3fc82b77562f53b09e5aa1d81f9db43196b6a1a9bbf271651d022837cb565a6807ce62ce7e99cc40db87edbba2b8b6c198761ac6ebee091c0615e10067dd  moz-libc-filename.patch
4e30548d00c6133c63b7036012a1938e5ff1d4fa3b20ba69782956f8d1fa00dcc36e055f40ebc2238f03d3e791b2f15e3c342b3801f0b0a3536acd35d71f9fc3  fix-ipc.patch
33497a0dfd98eb3d7c6e705e1cccdc367fecd0ee57924375ec7f0de105595f97ea471ff8e0ba0e3d9cb37680fe10ba82e2af169aa634587701d36d2be96f0d1d  fix-media.patch
0b96397441a1d42a23e322cdbfcad22ad5b5bc59c7265a7e1a3c4c26381a16a28f31165eb13147ce29174eb5c08ffe885c6df9a1e7b966e0b9c27637830f50ea  fix-netwerk.patch
6ffbe4d6e9e01cfd1ea949db1f030816fba916544ae3b082959e3b5ad275ea033ead590d66ca453f85943bed55e192a29d476bda31d3a6888fa4eb1123bf6234  fix-tools.patch
0b3f1e4b9fdc868e4738b5c81fd6c6128ce8885b260affcb9a65ff9d164d7232626ce1291aaea70132b3e3124f5e13fef4d39326b8e7173e362a823722a85127  stab.h"