1 # Maintainer: Ionut Biru <ibiru@archlinux.org>
6 pkgdesc="JavaScript interpreter and libraries"
8 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/24"
10 depends=(nspr gcc-libs readline zlib)
11 makedepends=(python2 zip libffi)
13 source=(http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$pkgver.tar.bz2)
14 md5sums=('5db79c10e049a2dc117a6e6a3bc78a8e')
17 cd mozjs-$pkgver/js/src
22 # Fix incompatibility with Perl 5.22
23 sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
28 CXXFLAGS+=' -fno-delete-null-pointer-checks'
29 cd mozjs-$pkgver/js/src
30 ./configure --prefix=/usr --with-system-nspr --enable-system-ffi \
31 --enable-readline --enable-threadsafe
36 cd mozjs-$pkgver/js/src
41 cd mozjs-$pkgver/js/src
42 make DESTDIR="$pkgdir" install
43 find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
46 # vim:set ts=2 sw=2 et: