summaryrefslogtreecommitdiff
path: root/mozjs78/Pkgfile
blob: 7461d0d02ca61cb69f2bccbb455728414ccc04e4 (plain)
    1 # Description: Mozilla's JavaScript engine
    2 # URL: https://spidermonkey.dev/
    3 # Maintainer: Juergen Daubert, jue at crux dot nu
    4 # Depends on: autoconf-2.13 readline zlib nspr python3 rust
    5 
    6 name=mozjs78
    7 version=78.15.0
    8 release=1
    9 source=(https://archive.mozilla.org/pub/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz
   10   Fixup-compatibility-of-mozbuild-with-Python-3.10.patch)
   11 
   12 build() {
   13 	cd firefox-$version
   14 
   15 	patch -Np1 -i $SRC/Fixup-compatibility-of-mozbuild-with-Python-3.10.patch
   16 
   17 	mkdir obj ; cd obj
   18 	../js/src/configure \
   19 		--prefix=/usr \
   20 		--disable-jemalloc \
   21 		--disable-debug-symbols \
   22 		--disable-optimize \
   23 		--enable-readline \
   24 		--with-intl-api \
   25 		--with-system-nspr \
   26 		--with-system-zlib
   27 
   28 	make
   29 	make DESTDIR=$PKG install
   30 
   31 	rm $PKG/usr/lib/libjs_static.ajs
   32 	chmod -x $PKG/usr/lib/pkgconfig/*
   33 }

Generated by cgit