blob: 9f35d1fef9933d2f1278270ed9230855683650bd (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xulrunner
pkgver=17.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"
# 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="13d616028eb77de927c29b6655c832c9 firefox-17.0.1.source.tar.bz2
36d8d42ae4375f1190c9558bb0d10fa7 mozconfig
f43c1f0ae57aa8289b130c6de8caf3ce 0002-Use-C99-math-isfinite.patch
e8b3a22d670241bb5c038729ac49a975 0003-xulrunner-jemalloc-aslr.patch
998b48fe73dc642065ab25230d739b2c uclibc-malloc_usable_size.patch
6a3942d96c7ce3c63251761cc12c8349 cairo.patch
a7b33d8b75306f225e3a8d1a8a403736 getchar.patch
090ea4daeedfff2915da62a738c7e81d sysconf.patch"
|