talimat 760 B

12345678910111213141516171819202122232425262728293031
  1. # Tanım: JavaScript yorumlayıcı ve kitaplığı
  2. # URL: https://developer.mozilla.org/En/SpiderMonkey/1.8.5
  3. # Paketçi: milisarge
  4. # Gerekler: libffi nspr zip python
  5. # Grup: kütüphane
  6. isim=js2
  7. surum=24.2.0
  8. devir=1
  9. kaynak=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$surum.tar.bz2 )
  10. derle() {
  11. cd mozjs-$surum/js/src
  12. sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
  13. SHELL=/bin/bash \
  14. ./configure --prefix=/usr \
  15. --enable-readline \
  16. --enable-threadsafe \
  17. --with-system-ffi \
  18. --with-system-nspr
  19. make
  20. make DESTDIR=$PKG install
  21. find $PKG/usr/include/mozjs-24/ \
  22. $PKG/usr/lib/libmozjs-24.a \
  23. $PKG/usr/lib/pkgconfig/mozjs-24.pc \
  24. -type f -exec chmod -v 644 {} \;
  25. }