# Note: depends on perl # Note: depends on zlib # Note: depends on libressl or openssl # Note: depends on Python2 (with zlib and libressl/openssl support) # Note: depends on nspr # Note: depends on icu # Note: depends on pkg-config wget -c https://ftp.mozilla.org/pub/spidermonkey/releases/38.3.0/mozjs-38.3.0sfink2.tar.bz2 tar -xjf mozjs-38.3.0sfink2.tar.bz2 cd mozjs-38.3.0sfink2 sed -i -e '/collation = [^"]/aif(!collation){continue;}' js/src/builtin/Intl.cpp # Fix some segfaults mkdir -p builddir cd builddir ../js/src/configure --prefix="/usr" --with-system-nspr --with-system-zlib --with-system-icu make # Doesn't mind -j# make install install js/src/js.pc /usr/lib/pkgconfig/mozjs-38.pc