Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : firefox | name : firefox | ||||
| version : 74.0 | version : 74.0 | ||||
| release : 186 | release : 187 | ||||
| source : | source : | ||||
| - https://ftp.mozilla.org/pub/firefox/releases/74.0/source/firefox-74.0.source.tar.xz : 74589c2836d7c30134636823c3caefbcaed0ea7c3abb2def9e3ddd9f86d9440a | - https://ftp.mozilla.org/pub/firefox/releases/74.0/source/firefox-74.0.source.tar.xz : 74589c2836d7c30134636823c3caefbcaed0ea7c3abb2def9e3ddd9f86d9440a | ||||
| - https://getsol.us/sources/mozilla/firefox-74.0-langpacks.tar.xz : af3e48c566f7ac546e239e2b260746bb0f37c7379ef042cab344c5cccb092093 | - https://getsol.us/sources/mozilla/firefox-74.0-langpacks.tar.xz : af3e48c566f7ac546e239e2b260746bb0f37c7379ef042cab344c5cccb092093 | ||||
| license : | license : | ||||
| - GPL-2.0-or-later | - GPL-2.0-or-later | ||||
| - MPL-2.0 | - MPL-2.0 | ||||
| component : network.web.browser | component : network.web.browser | ||||
| summary : Firefox web browser | summary : Firefox web browser | ||||
| Show All 33 Lines | |||||
| setup : | | setup : | | ||||
| cp $pkgfiles/mozilla-api-key . | cp $pkgfiles/mozilla-api-key . | ||||
| cp $pkgfiles/config .mozconfig | cp $pkgfiles/config .mozconfig | ||||
| sed 's@\#\#JOBCOUNT\#\#@%JOBS%@' -i .mozconfig | sed 's@\#\#JOBCOUNT\#\#@%JOBS%@' -i .mozconfig | ||||
| echo "ac_add_options --with-mozilla-api-keyfile=${workdir}/mozilla-api-key" >> .mozconfig | echo "ac_add_options --with-mozilla-api-keyfile=${workdir}/mozilla-api-key" >> .mozconfig | ||||
| pushd third_party/python/psutil/ | pushd third_party/python/psutil/ | ||||
| patch -p1 < $pkgfiles/Future-proof-disk_io_counters.patch | patch -p1 < $pkgfiles/Future-proof-disk_io_counters.patch | ||||
| popd | popd | ||||
| ./mach configure | |||||
| build : | | build : | | ||||
| xvfb-run -a -n 55 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" ./mach build | # Instrument build | ||||
| echo "ac_add_options --enable-profile-generate=cross" >> .mozconfig | |||||
| ./mach build | |||||
| # Package and run automated benchmarks for profiling | |||||
| ./mach package | |||||
| LLVM_PROFDATA=llvm-profdata JARLOG_FILE="$PWD/jarlog" xvfb-run -s "-screen 0 1920x1080x24 -ac +extension GLX +render -noreset" \ | |||||
| ./mach python build/pgo/profileserver.py | |||||
| # Clean for rebuild | |||||
| ./mach clobber | |||||
| # Profile use build and enable lto | |||||
| sed -i '/--enable-profile-generate=cross/d' .mozconfig | |||||
| echo "ac_add_options --enable-lto=cross" >> .mozconfig | |||||
| echo "ac_add_options --enable-profile-use=cross" >> .mozconfig | |||||
| echo "ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata" >> .mozconfig | |||||
| echo "ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog" >> .mozconfig | |||||
| ./mach build | |||||
| ./mach buildsymbols | ./mach buildsymbols | ||||
| install : | | install : | | ||||
| # Install locales first | # Install locales first | ||||
| langpackdir="$installdir/%libdir%/firefox/browser/extensions" | langpackdir="$installdir/%libdir%/firefox/browser/extensions" | ||||
| install -D -d -m 00755 "${langpackdir}" | install -D -d -m 00755 "${langpackdir}" | ||||
| tar xf "${sources}/firefox-${version}-langpacks.tar.xz" | tar xf "${sources}/firefox-${version}-langpacks.tar.xz" | ||||
| for i in ff_lang_pack/*.xpi; do | for i in ff_lang_pack/*.xpi; do | ||||
| Show All 17 Lines | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.