# Maintainer: Jan Alexander Steffens (heftig) # ALARM: Kevin Mihelich # - configure with --disable-lto, --disable-rust-simd # - patch to fix build on ARM pkgname=js78 pkgver=78.15.0 pkgrel=4 pkgdesc="JavaScript interpreter and libraries - Version 78" arch=(x86_64) url="https://spidermonkey.dev/" license=(MPL) depends=(gcc-libs readline zlib sh) makedepends=(zip autoconf2.13 python-setuptools python-psutil rust llvm clang lld) checkdepends=(mercurial git) options=(!lto debug) _relver=${pkgver}esr source=(https://archive.mozilla.org/pub/firefox/releases/$_relver/source/firefox-$_relver.source.tar.xz{,.asc} 0001-Fixes-for-LTO-PGO-support.patch 0002-Fixes-for-Python-3.10.patch 0003-Fixes-for-Rust-1.56.patch arm.patch) sha256sums=('a4438d84d95171a6d4fea9c9f02c2edbf0475a9c614d968ebe2eedc25a672151' 'SKIP' '606ef0a2faeffd52cd3d4564146a95eef2b0e58e610d3af8d203753ed27e5a00' 'b723277864c8afad1db007963f8e1090b352ced7bb312b2e7e2f11f448e8432d' 'cb5f1a0551f55c12562c1f384e9d0a011dd13993039e65aa69b5345a5951af9f' 'bc00516032330760444939c516a60c78f868631e1b37f075f0fe71a53737b966') validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases # Make sure the duplication between bin and lib is found COMPRESSZST+=(--long) prepare() { mkdir mozbuild cd firefox-$pkgver patch -p1 -i ../arm.patch # Post-78 fixes to fix LTO with LLVM 11 patch -Np1 -i ../0001-Fixes-for-LTO-PGO-support.patch # Fix build with Python 3.10 patch -Np1 -i ../0002-Fixes-for-Python-3.10.patch # Fix build with Rust 1.56 patch -Np1 -i ../0003-Fixes-for-Rust-1.56.patch cat >../mozconfig <.mozconfig ../mozconfig - <.mozconfig ../mozconfig - <