# Maintainer Ram-Z # Contributor: Ionut Biru pkgname=js _pkgname=mozjs pkgver=45.0.2 pkgrel=1 pkgdesc="JavaScript interpreter and libraries" arch=('x86_64') url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" license=('GPL2') depends=('nspr' 'readline' 'zlib') makedepends=('autoconf2.13' 'python2' 'zip' 'libffi') options=(!buildflags) source=(https://people.mozilla.org/~sfink/$_pkgname-$pkgver.tar.bz2) sha1sums=('68a0fbb9c3f988ab28ea3817e0669ee6fe6c93ed') build() { cd mozjs-$pkgver/js/src autoconf-2.13 [[ -d build ]] && rm -rf build mkdir build && cd build ../configure \ --prefix=/usr \ --with-system-nspr \ --enable-system-ffi \ --enable-readline \ --enable-threadsafe SHELL="/bin/sh" make } package() { cd $_pkgname-$pkgver/js/src/build make DESTDIR="$pkgdir" install }