1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
6 pkgdesc="JavaScript interpreter and libraries - Version 60"
8 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
10 depends=(gcc-libs readline zlib sh)
11 makedepends=(python2 zip autoconf2.13)
13 source=(https://archive.mozilla.org/pub/firefox/releases/$_relver/source/firefox-$_relver.source.tar.xz{,.asc}
15 sha256sums=('9f453c8cc5669e46e38f977764d49a36295bf0d023619d9aac782e6bb3e8c53f'
17 '0b410aa6ebd0236cd3ea524340c2da2235973a42cd0eaa90f7f394cd5bcbab95')
18 validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release@mozilla.com>
20 # Make sure the duplication between bin and lib is found
27 # https://bugzilla.mozilla.org/show_bug.cgi?id=1479687
28 patch -Np1 -i ../bug1415202.patch
32 local configure_args=(
35 --disable-debug-symbols
41 --enable-posix-nspr-emulation
51 cd firefox-$pkgver/obj
53 sh ../js/src/configure "${configure_args[@]}"
58 local jstests_extra_args=(
61 ) jittest_extra_args=(
68 cd firefox-$pkgver/obj
69 make -C js/src check-jstests check-jit-test \
70 JSTESTS_EXTRA_ARGS="${jstests_extra_args[*]}" \
71 JITTEST_EXTRA_ARGS="${jittest_extra_args[*]}" \
72 JITTEST_TEST_ARGS="${jittest_test_args[*]}"
76 cd firefox-$pkgver/obj
77 make DESTDIR="$pkgdir" install
78 rm "$pkgdir"/usr/lib/*.ajs
79 find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -c a-x {} +
82 # vim:set ts=2 sw=2 et: