talimat 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Tanım: Java Runtime Environment
  2. # URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: geliştirme
  6. isim=jre
  7. surum=1.8.0_172
  8. devir=1
  9. kaynak=(https://javaone.ir/sites/default/files/java/8/8u172/jre/jre-8u172-linux-x64.tar.gz)
  10. derle(){
  11. cd $isim$surum
  12. install -d $PKG/usr/{bin,share,lib/$isim}
  13. mv bin lib plugin $PKG/usr/lib/$isim
  14. install -d "$PKG"/usr/lib/mozilla/plugins
  15. # several symlinks
  16. ln -s $isim $PKG/usr/lib/java
  17. ln -s ../lib/java/bin/java $PKG/usr/bin/java
  18. ln -s ../lib/java/bin/javaws $PKG/usr/bin/javaws
  19. ln -s ../lib/java/bin/keytool $PKG/usr/bin/keytool
  20. ln -s ../lib/java/bin/jcontrol $PKG/usr/bin/jcontrol
  21. sed -e "s|Exec=|Exec=/usr/lib/java/bin/|" \
  22. -e "s|.png|-jre8.png|" \
  23. -i $PKG/usr/lib/jre/lib/desktop/applications/*
  24. mv $PKG/usr/lib/jre/lib/desktop/applications "$PKG"/usr/share/
  25. #install -m644 "$SRC"/*.desktop "$PKG"/usr/share/applications/
  26. ln -s /usr/lib/java/lib/amd64/libnpjp2.so "$PKG"/usr/lib/mozilla/plugins/libnpjp2-jre8.so
  27. # remove broken libraries
  28. rm $PKG/usr/lib/jre/lib/amd64/libavplugin-*.so
  29. }