blob: ba93cf99575d69095cbb8bae6183bcd994f1bee6 (
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
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=mozjs60
pkgver=60.0.2
_majver=${pkgver%%.*}
pkgrel=3
pkgdesc="standalone mozilla javascript engine"
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38"
arch="all !armhf !armv7 !s390x"
license="LGPL"
depends=""
depends_dev="icu-dev nspr-dev libffi-dev readline-dev"
makedepends="$depends_dev zlib-dev python2 perl sed autoconf2.13 linux-headers"
subpackages="$pkgname-dev"
source="https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/source/firefox-${pkgver}esr.source.tar.xz
0001-silence-sandbox-violations.patch
add-exposeToActiveJS.patch
fix-musl-build.patch
fix-soname-lib.patch
"
builddir="$srcdir"/firefox-$pkgver
_builddir="$builddir/js/src"
build() {
cd "$_builddir"
# avoid complains about autoconf
touch configure
export SHELL=/bin/ash
PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
--with-system-icu \
--with-system-nspr \
--with-system-zlib \
--with-intl-api \
--enable-ctypes \
--enable-shared-js \
--enable-readline \
--enable-system-ffi \
--disable-optimize \
--disable-jemalloc \
--enable-pie
make
}
check() {
cd "$_builddir"
dist/bin/jsapi-tests
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.ajs
# temp fix for mozjs60 not installing headers into the right place
mkdir -p "$pkgdir"/usr/include/mozjs-$_majver
mv "$pkgdir"/usr/include/double-conversion \
"$pkgdir"/usr/include/js \
"$pkgdir"/usr/include/mozilla \
"$pkgdir"/usr/include/*.h \
"$pkgdir"/usr/include/mozjs-$_majver/
}
sha512sums="c147517e37ecb6340dab29f4bcbaeb18450eda0fbd2bdfda1ab0c160de9ad33572113866c1ed4feba6a77bec432a2e02fb5cbcceb73e4a45ceef308f04d2b836 firefox-60.0.2esr.source.tar.xz
adaacd6e087a07bd4ded598f6a66ee00c67c9092bb93d88729668516f6f00f497ad8ece1866680e6c371e4705e0f9194ade41ea3a986f793bd972c92029cf03a 0001-silence-sandbox-violations.patch
7ad9dbd07a74673d0f531c1cf1aad05a169126321007ea231b3a9f090e018e681da0d16a33d662245fd0bb10e8feb2a4a282683d6e9a2307d70fdcfb2a321387 add-exposeToActiveJS.patch
bc91c2fb15eb22acb8acc36d086fb18fbf6f202b4511d138769b5ecaaed4a673349c55f808270c762616fafa42e3b01e74dc0af1dcbeea1289e043926e2750c8 fix-musl-build.patch
4782794a0f409f767293fb5f61a9ad58985e05197538975ed8f7372bfae6921a3b9bcbbbfcf8ce2843cdfe8ee799d08cee71a6391ed5ae939f051d13038b0960 fix-soname-lib.patch"
|