1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="JavaScript interpreter and libraries - Version 68"
8 url="https://spidermonkey.dev/"
10 depends=(gcc-libs readline zlib sh)
11 makedepends=(python2 zip autoconf2.13 python rust llvm clang)
12 checkdepends=(mercurial git)
14 source=(https://archive.mozilla.org/pub/firefox/releases/$_relver/source/firefox-$_relver.source.tar.xz{,.asc})
15 sha256sums=('ae692bf2a15908cacbb9d4c7ccf78525a87410ff3f13befedc1926f849bc27cc'
17 validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release@mozilla.com>
19 # Make sure the duplication between bin and lib is found
28 local configure_args=(
31 --disable-debug-symbols
37 --enable-posix-nspr-emulation
42 --enable-unaligned-private-values
50 export RANLIB=llvm-ranlib
52 cd firefox-$pkgver/obj
54 sh ../js/src/configure "${configure_args[@]}"
59 local jstests_extra_args=(
62 ) jittest_extra_args=(
69 cd firefox-$pkgver/obj
70 make -C js/src check-jstests check-jit-test \
71 JSTESTS_EXTRA_ARGS="${jstests_extra_args[*]}" \
72 JITTEST_EXTRA_ARGS="${jittest_extra_args[*]}" \
73 JITTEST_TEST_ARGS="${jittest_test_args[*]}"
77 cd firefox-$pkgver/obj
78 make DESTDIR="$pkgdir" install
79 rm "$pkgdir"/usr/lib/*.ajs
80 find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -c a-x {} +
83 # vim:set ts=2 sw=2 et: