diff options
author | davidovski <david@davidovski.xyz> | 2022-02-02 18:24:36 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-02 18:24:36 +0000 |
commit | 16d84db4a6fd29352492ea64b157856a6f1b7af9 (patch) | |
tree | ab9740ad1dbf2f80537f82b57a39084f3f360d1e /repo/system/js78.xibuild | |
parent | 96471a1a300810a772bfe0d150d75a255641b4ae (diff) |
added polkit deps
Diffstat (limited to 'repo/system/js78.xibuild')
-rw-r--r-- | repo/system/js78.xibuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/repo/system/js78.xibuild b/repo/system/js78.xibuild new file mode 100644 index 0000000..5fe32a6 --- /dev/null +++ b/repo/system/js78.xibuild @@ -0,0 +1,42 @@ +#!/bin/bash + +MAKEDEPS=(gcc autoconf icu rustc which zip) +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 + +} + +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 && + rm -v $PKG_VER/usr/lib/libjs_static.ajs && + sed -i '/@NSPR_CFLAGS@/d' $PKG_VER/usr/bin/js78-config +} |