2016-02-24 01:27:23 +01:00
|
|
|
# Description: JavaScript interpreter and libraries
|
|
|
|
# URL: https://developer.mozilla.org/En/SpiderMonkey/1.8.5
|
2017-01-31 02:35:21 +01:00
|
|
|
# Packager: milisarge
|
2016-02-24 01:27:23 +01:00
|
|
|
# Depends on: libffi nspr zip python
|
2017-01-31 02:35:21 +01:00
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
name=js1
|
|
|
|
version=17.0.0
|
|
|
|
release=1
|
|
|
|
source=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs$version.tar.gz )
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd mozjs$version/js/src
|
|
|
|
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-readline \
|
|
|
|
--enable-threadsafe \
|
|
|
|
--with-system-ffi \
|
|
|
|
--with-system-nspr
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
find $PKG/usr/include/js-17.0/ \
|
|
|
|
$PKG/usr/lib/libmozjs-17.0.a \
|
|
|
|
$PKG/usr/lib/pkgconfig/mozjs-17.0.pc \
|
|
|
|
-type f -exec chmod -v 644 {} \;
|
|
|
|
}
|