PKGBUILD 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Maintainer (arch): Guillaume ALAUX <guillaume@archlinux.org>
  2. # Contributor: André Silva <emulatorman@hyperbola.info>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. pkgname=java-runtime-common
  5. pkgbase=java-common
  6. pkgver=3
  7. pkgrel=1.parabola1
  8. pkgdesc='Common files for Java Runtime Environments (Parabola rebranded)'
  9. arch=('any')
  10. url='https://www.parabola.nu/packages/libre/any/java-runtime-common/'
  11. license=('GPL')
  12. checkdepends=('wget')
  13. _shunitver=2.1.6
  14. conflicts=('java-common')
  15. replaces=('java-common')
  16. backup=(etc/profile.d/jre.sh
  17. etc/profile.d/jre.csh)
  18. install=install_java-runtime-common.sh
  19. source=(profile_jre.csh
  20. profile_jre.sh
  21. bin_parabola-java
  22. test_parabola-java
  23. shunit2-${_shunitver}.tar.gz::https://github.com/kward/shunit2/archive/source.tar.gz)
  24. sha256sums=('fb981764fbdcb33976085405d002a1427b5401da5f13f1dd00008dbe8306583a'
  25. '36e07f9387f24ff0c6dff1b4c6d9011eedef4bd22634e0c5a6335817991dc151'
  26. 'b5d2bbbad708a84d4f2674dcba9053d777c735130843f6f924f063f456f2601d'
  27. 'aab03dee5a3567c12d1af30374486aeaa6e317404ecf018dcb675124225f5853'
  28. '6beca93d20b72b46083c8271c4cf1da21b45f250a92b401c2565c65e1d75138f')
  29. check() {
  30. cd "${srcdir}"
  31. ln -s shunit2-source/${_shunitver} shunit2
  32. ./test_parabola-java
  33. }
  34. package() {
  35. cd "${srcdir}"
  36. install -d -m 755 "${pkgdir}/usr/lib/jvm/"
  37. ln -s /dev/null "${pkgdir}/usr/lib/jvm/default"
  38. ln -s /dev/null "${pkgdir}/usr/lib/jvm/default-runtime"
  39. install -D -m 644 profile_jre.sh "${pkgdir}/etc/profile.d/jre.sh"
  40. install -D -m 644 profile_jre.csh "${pkgdir}/etc/profile.d/jre.csh"
  41. install -D -m 755 bin_parabola-java "${pkgdir}/usr/bin/parabola-java"
  42. ln -s parabola-java "${pkgdir}/usr/bin/archlinux-java"
  43. install -d -m 755 "${pkgdir}/usr/bin/"
  44. # Official list of binaries that Java headless runtime packages MUST provide
  45. # This list is based on Parabola' default Java implementation: "OpenJDK 7 Icedtea"
  46. for b in \
  47. java keytool orbd pack200 rmid rmiregistry servertool tnameserv unpack200;
  48. do
  49. ln -s /usr/lib/jvm/default-runtime/bin/${b} "${pkgdir}/usr/bin/${b}"
  50. done
  51. }