blob: 11951835e9e430575fe1e2dde3bae464aae0524f (
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=25.0.1
_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="b5b57d3ea937a339e0ed7ebea604b430 firefox-25.0.1.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
b10e9e3c9dd8802145557e8b31ffba1f get_nproc.patch
84b101ca9b5f91d3387851e1c42d3908 stat.patch
86b5eb4bb890a45808cc3a46b99cd8a5 moz-libc-filename.patch
a070f213f0e52d7873b46206dd96159c fix-ipc.patch
1068c9a7ee92544ffd7903a5b11fc1cf fix-media.patch
41520f6c013807e6af2c377276efb843 fix-netwerk.patch
8b84e2c7a9d73e0d42bb5bb52edf696f fix-tools.patch
4383d038b8d8411ea46f4a109197c19e stab.h"
sha256sums="e5d0667faeec3a0372831b23d0c6804524e134d1ebc4b7e080042491678d4f0b firefox-25.0.1.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
77670461bec9447ecff8634727d3ef2f177830d19f9f27af6aaa629485472f00 get_nproc.patch
bcdfc27fb1561beb797ed8e3d14cb7c88de54a5aed2eb33bf84e331a2b0ec200 stat.patch
889856baa82413afb2f79b7b3e3add626e1ac181efd398e80c434836b793c294 moz-libc-filename.patch
e6e7aa8d8875f4ed6d8acfc9668f906d8a290d24e25c58d6d5c3ecc5ab3d6778 fix-ipc.patch
1f9d36e7468f5f157406174f81c0133d41952e2207f93a4a987ecc178cd9b0ac fix-media.patch
9681d00c44f6b3873eb97d0a7277c04710da956aa4d08c100cf62c24d03d6a5d fix-netwerk.patch
0fdde05d2649a36ec83c46a3864702d3b28009d78099ac5c08dee08e5ab36454 fix-tools.patch
960d82bbfdc88c95f5cb4f2e1c1bf23dae7519b3b7203914d7b3ddbff1ba4c28 stab.h"
sha512sums="7f6cef8dec77d9e43a11f35d5cbae267e71327caa0d63a713ef8579bc45a921c7211d14354da1856d3d7b25c7ca99abf463682873f07fc5a4543c64d589be0f0 firefox-25.0.1.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
c9958e9dee7591f2dfd61e95513625085382ffac71c5dcd69f21c5450cf45e78b5550eb1ab64cbbaecf6a4d0b72754fcfa8fed7ae64781f82f216bbdaaa53d53 get_nproc.patch
478bb56c8e87c5ce6ccf1dd31cfb48be8e1a817e77e3158f633cb48bd269692061f8728589b9cebfac04d484518c2525d61ba4988abe8ea274fdd419ee02ab34 stat.patch
005d603c4bb90b4ac0d91775cc500416ec218860971a0888316f4d6a92a51f3a67fa30eacbe12c826e589ac0e2ddf3e72eec451382653fd0d557804d4af1e9a6 moz-libc-filename.patch
4e30548d00c6133c63b7036012a1938e5ff1d4fa3b20ba69782956f8d1fa00dcc36e055f40ebc2238f03d3e791b2f15e3c342b3801f0b0a3536acd35d71f9fc3 fix-ipc.patch
33497a0dfd98eb3d7c6e705e1cccdc367fecd0ee57924375ec7f0de105595f97ea471ff8e0ba0e3d9cb37680fe10ba82e2af169aa634587701d36d2be96f0d1d fix-media.patch
0b96397441a1d42a23e322cdbfcad22ad5b5bc59c7265a7e1a3c4c26381a16a28f31165eb13147ce29174eb5c08ffe885c6df9a1e7b966e0b9c27637830f50ea fix-netwerk.patch
beb51596f3baedfcf88d0ad11eb38eb2ec4072236c23f08a01d40dc1d8e32b88cc1472c7fc1a4b043afac8a7d9e76e8b55f61977f77de474fe7a84eec9dbac72 fix-tools.patch
0b3f1e4b9fdc868e4738b5c81fd6c6128ce8885b260affcb9a65ff9d164d7232626ce1291aaea70132b3e3124f5e13fef4d39326b8e7173e362a823722a85127 stab.h"
|