milis/talimatname/genel/j/js2/talimat

30 lines
740 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: JavaScript yorumlayıcı ve kitaplığı
2016-02-24 01:27:23 +01:00
# URL: https://developer.mozilla.org/En/SpiderMonkey/1.8.5
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libffi nspr zip python
2017-01-31 02:35:21 +01:00
2017-10-28 14:10:23 +02:00
isim=js2
surum=24.2.0
devir=1
kaynak=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$surum.tar.bz2 )
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd mozjs-$surum/js/src
2016-02-24 01:27:23 +01:00
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
SHELL=/bin/bash \
./configure --prefix=/usr \
--enable-readline \
--enable-threadsafe \
--with-system-ffi \
--with-system-nspr
make
make DESTDIR=$PKG install
find $PKG/usr/include/mozjs-24/ \
$PKG/usr/lib/libmozjs-24.a \
$PKG/usr/lib/pkgconfig/mozjs-24.pc \
-type f -exec chmod -v 644 {} \;
}