milis/talimatname/genel/j/js2/talimat

30 lines
740 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: JavaScript yorumlayıcı ve kitaplığı
# URL: https://developer.mozilla.org/En/SpiderMonkey/1.8.5
# Paketçi: milisarge
# Gerekler: libffi nspr zip python
isim=js2
surum=24.2.0
devir=1
kaynak=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$surum.tar.bz2 )
derle() {
cd mozjs-$surum/js/src
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 {} \;
}