talimat 1016 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Tanım: Ant paketi Java tabanlı bir inşa aracıdır.
  2. # URL: http://ant.apache.org/
  3. # Paketçi: milisarge
  4. # Gerekler: glib openjdk
  5. # Grup: geliştirme
  6. isim=apache-ant
  7. surum=1.9.7
  8. devir=1
  9. kaynak=(http://archive.apache.org/dist/ant/source/$isim-$surum-src.tar.bz2
  10. https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-1.3.tgz
  11. http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar)
  12. derle() {
  13. export JAVA_HOME=/opt/jdk
  14. cd $isim-$surum
  15. mv ../hamcrest-1.3 .
  16. cp -v ../junit-4.11.jar \
  17. hamcrest-1.3/hamcrest-core-1.3.jar lib/optional
  18. mkdir -p $PKG/opt/ant-$surum
  19. ./build.sh -Ddist.dir=$PKG/opt/ant-$surum dist
  20. mkdir -p $PKG/etc/profile.d
  21. ln -v -sf ant-$surum $PKG/opt/ant
  22. cat > $PKG/etc/profile.d/ant.sh << "EOF"
  23. # Beginof /etc/profile.d/ant.sh
  24. # Adjust the path
  25. pathappend /opt/ant/bin
  26. export ANT_HOME=/opt/ant
  27. # End of /etc/profile.d/ant.sh
  28. EOF
  29. mkdir -p $PKG/usr/bin
  30. ln -s /opt/ant/bin/ant $PKG/usr/bin/ant
  31. rm -rf $PKG/opt/ant-${surum}/manual
  32. }