2020-09-25 08:42:12 +00:00
|
|
|
# Description: Mozilla's JavaScript engine
|
2021-11-06 11:14:29 +01:00
|
|
|
# URL: https://spidermonkey.dev/
|
2021-03-09 17:27:25 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: autoconf-2.13 readline zlib nspr python3 rust
|
2020-09-25 08:42:12 +00:00
|
|
|
|
|
|
|
name=mozjs78
|
2021-10-15 17:25:07 +02:00
|
|
|
version=78.15.0
|
2020-09-25 08:42:12 +00:00
|
|
|
release=1
|
2021-12-24 00:56:23 +01:00
|
|
|
source=(https://archive.mozilla.org/pub/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz
|
|
|
|
Fixup-compatibility-of-mozbuild-with-Python-3.10.patch)
|
2020-09-25 08:42:12 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd firefox-$version
|
|
|
|
|
2021-12-24 00:56:23 +01:00
|
|
|
patch -Np1 -i $SRC/Fixup-compatibility-of-mozbuild-with-Python-3.10.patch
|
|
|
|
|
2020-09-25 08:42:12 +00:00
|
|
|
mkdir obj ; cd obj
|
|
|
|
../js/src/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-jemalloc \
|
|
|
|
--disable-debug-symbols \
|
|
|
|
--disable-optimize \
|
|
|
|
--enable-readline \
|
|
|
|
--with-intl-api \
|
|
|
|
--with-system-nspr \
|
|
|
|
--with-system-zlib
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
rm $PKG/usr/lib/libjs_static.ajs
|
|
|
|
chmod -x $PKG/usr/lib/pkgconfig/*
|
|
|
|
}
|