talimat 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Tanım: JVM için güçlü yapı sistemi
  2. # URL: https://gradle.org/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: openjdk
  5. # Grup: geliştirme
  6. isim=gradle
  7. surum=4.4.1
  8. devir=1
  9. kaynak=(https://services.gradle.org/distributions/${isim}-${surum}-all.zip
  10. $isim.sh)
  11. derle() {
  12. cd ${isim}-${surum}
  13. # install profile.d script
  14. install -Dm 755 "${SRC}/${isim}.sh" "${PKG}/etc/profile.d/${isim}.sh"
  15. # create the necessary directory structure
  16. install -d "${PKG}/usr/share/java/${isim}/bin"
  17. install -d "${PKG}/usr/share/java/${isim}/lib/plugins"
  18. install -d "${PKG}/usr/share/java/${isim}/init.d"
  19. install -d "${PKG}/usr/bin"
  20. # copy across jar files
  21. install -Dm 644 lib/*.jar "${PKG}/usr/share/java/${isim}/lib"
  22. install -Dm 644 lib/plugins/*.jar "${PKG}/usr/share/java/${isim}/lib/plugins"
  23. # copy across supporting text documentation and scripts
  24. install -m 644 NOTICE "${PKG}/usr/share/java/${isim}"
  25. install -m 644 LICENSE "${PKG}/usr/share/java/${isim}"
  26. install -m 644 *.html "${PKG}/usr/share/java/${isim}"
  27. install -m 755 bin/gradle "${PKG}/usr/share/java/${isim}/bin"
  28. install -m 644 init.d/*.* "${PKG}/usr/share/java/${isim}/init.d"
  29. # link gradle script to /usr/bin
  30. ln -s /usr/share/java/${isim}/bin/${isim} "${PKG}/usr/bin"
  31. # create the necessary directory structure
  32. install -d "${PKG}/usr/share/java/gradle/docs"
  33. install -d "${PKG}/usr/share/java/gradle/samples"
  34. # copy across documentation and samples
  35. cp -r docs/* "${PKG}/usr/share/java/gradle/docs"
  36. cp -r samples/* "${PKG}/usr/share/java/gradle/samples"
  37. install -d "${PKG}/usr/share/java/gradle/src"
  38. cp -r src/* "${PKG}/usr/share/java/gradle/src"
  39. }