talimat 760 B

123456789101112131415161718192021222324252627
  1. # Tanım: JavaScript yorumlayıcı ve kitaplıkları
  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=js1
  7. surum=17.0.0
  8. devir=1
  9. kaynak=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs$surum.tar.gz )
  10. derle() {
  11. cd mozjs$surum/js/src
  12. sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl
  13. ./configure --prefix=/usr \
  14. --enable-readline \
  15. --enable-threadsafe \
  16. --with-system-ffi \
  17. --with-system-nspr
  18. make
  19. make DESTDIR=$PKG install
  20. find $PKG/usr/include/js-17.0/ \
  21. $PKG/usr/lib/libmozjs-17.0.a \
  22. $PKG/usr/lib/pkgconfig/mozjs-17.0.pc \
  23. -type f -exec chmod -v 644 {} \;
  24. }