blob: 72bfad2b45ca1a141bb256ce5ca247e7bb254efc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
MAKEDEPS="gcc autoconf2-13 icu rustc which zip llvm patch make"
DEPS="readline bash zlib"
PKG_VER=78.15.0
SOURCE=https://archive.mozilla.org/pub/firefox/releases/${PKG_VER}esr/source/firefox-${PKG_VER}esr.source.tar.xz
ADDITIONAL=(
https://www.linuxfromscratch.org/patches/blfs/svn/js-$PKG_VER-python_3_10-1.patch
)
DESC="JavaScript interpreter and libraries - Version 78"
prepare () {
patch -Np1 -i js-$PKG_VER-python_3_10-1.patch
mountpoint -q /dev/shm || mount -t tmpfs devshm /dev/shm
export PATH=/opt/rustc/bin:$PATH
export LD_LIBRARY_PATH=/opt/rustc/lib:$LD_LIBRARY_PATH
}
build () {
mkdir obj &&
cd obj &&
CC=gcc CXX=g++ \
../js/src/configure --prefix=/usr \
--with-intl-api \
--with-system-zlib \
--with-system-icu \
--disable-jemalloc \
--disable-debug-symbols \
--enable-readline &&
make
}
package () {
make DESTDIR=$PKG_DEST install
[ -f $PKG_DEST/usr/lib/libjs_static.ajs ] && rm -v $PKG_DEST/usr/lib/libjs_static.ajs
sed -i '/@NSPR_CFLAGS@/d' $PKG_DEST/usr/bin/js78-config
}
|