opt/spidermonkey/Pkgfile

38 lines
930 B
Plaintext
Raw Normal View History

2019-05-10 12:57:31 +02:00
# Description: Javascript engine library
2020-06-06 13:09:47 +02:00
# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
2019-05-10 12:57:31 +02:00
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: autoconf-2.13 readline zlib nspr python python3
2013-09-28 01:23:23 +02:00
name=spidermonkey
2020-09-13 12:38:41 +02:00
version=68.12.0
release=1
2019-05-10 12:57:31 +02:00
source=(https://archive.mozilla.org/pub/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz)
2013-09-28 01:23:23 +02:00
build() {
2019-05-10 12:57:31 +02:00
cd firefox-$version
2013-09-28 01:23:23 +02:00
# http://www.linuxfromscratch.org/blfs/view/svn/general/js68.html
sed '21,+4d' -i js/moz.configure
2019-05-10 12:57:31 +02:00
mkdir obj ; cd obj
2016-12-26 10:29:19 +01:00
export CC=gcc CXX=g++
export LLVM_OBJDUMP=/bin/false
2019-05-10 12:57:31 +02:00
../js/src/configure \
--prefix=/usr \
--disable-jemalloc \
--disable-debug-symbols \
2019-05-10 12:57:31 +02:00
--disable-optimize \
--enable-readline \
--with-intl-api \
--with-system-nspr \
--with-system-zlib
2013-09-28 01:23:23 +02:00
make
make DESTDIR=$PKG install
2019-05-10 12:57:31 +02:00
rm $PKG/usr/lib/libjs_static.ajs
chmod -x $PKG/usr/lib/pkgconfig/*
2013-09-28 01:23:23 +02:00
}