talimat 685 B

12345678910111213141516171819202122
  1. # Tanım: JavaScript in java gerçeklemesi
  2. # URL: https://github.com/mozilla/rhino
  3. # Paketçi: milisarge
  4. # Gerekler: apache-ant openjdk
  5. # Grup: geliştirme
  6. isim=rhino
  7. surum=1.7.7.1
  8. devir=1
  9. kaynak=(https://github.com/mozilla/$isim/archive/Rhino${version//./_}_RELEASE.tar.gz
  10. http://archive.apache.org/dist/xmlbeans/binaries/xmlbeans-2.6.0.tgz)
  11. derle() {
  12. export JAVA_HOME=/opt/OpenJDK-8u60-bin
  13. export PATH=$JAVA_HOME/bin:/opt/ant/bin:$PATH
  14. cd $isim-Rhino${version//./_}_RELEASE
  15. ant -Dxbean.jar=$SRC/xmlbeans-2.6.0/lib/xbean.jar \
  16. -Djsr173.jar=$SRC/xmlbeans-2.6.0/lib/jsr173_1.0_api.jar \
  17. jar javadoc
  18. install -D -m 644 build/$isim$surum/js.jar $PKG/usr/share/java/$isim.jar
  19. }