basic build script for firefox
This commit is contained in:
20
src/build.sh
Normal file
20
src/build.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#! nix-shell -i bash --pure
|
||||||
|
#! nix-shell -p bash curl gcc zlib libffi icu77
|
||||||
|
VERSION="140.4.0esr"
|
||||||
|
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz/"
|
||||||
|
BUILDPATH=$(realpath .)
|
||||||
|
#unzip this or something
|
||||||
|
curl -RO $DOWNLOAD
|
||||||
|
tar -xzf "firefox-$VERSION.source.tar.xz src"
|
||||||
|
|
||||||
|
cd "src/js/src"
|
||||||
|
|
||||||
|
mkdir _build
|
||||||
|
cd _build
|
||||||
|
|
||||||
|
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix=$BUILDPATH \
|
||||||
|
--with-intl-api --enable-optimize
|
||||||
|
|
||||||
|
make
|
||||||
|
make install
|
||||||
Reference in New Issue
Block a user