unciv-bin-4.11.14_p1.ebuild 899 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit desktop java-pkg-2
  5. #upstream: 4.11.14-patch1
  6. #gentoo: 4.11.14_p1
  7. MY_PV=$(ver_cut 1-3)-patch$(ver_cut 5)
  8. MY_PN=Unciv
  9. MY_P=${MY_PN}-${MY_PV}
  10. S=${WORKDIR}/
  11. DESCRIPTION="Civ V remake for Android & Desktop"
  12. HOMEPAGE="https://github.com/yairm210/Unciv"
  13. SRC_URI="https://github.com/yairm210/Unciv/releases/download/${MY_PV}/${MY_PN}.jar -> ${MY_P}.jar"
  14. LICENSE="MPL-2.0"
  15. SLOT="0"
  16. KEYWORDS="~amd64"
  17. DEPEND=""
  18. RDEPEND="
  19. || ( virtual/jre:11 virtual/jre:17 )
  20. "
  21. BDEPEND=""
  22. src_unpack() {
  23. cp -v "${DISTDIR}/${A}" . || die
  24. unzip ${A} ExtraImages/Icon.png || die
  25. }
  26. src_install() {
  27. java-pkg_newjar "${MY_P}.jar"
  28. java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
  29. newicon ExtraImages/Icon.png Unciv-bin-icon.png
  30. make_desktop_entry "${PN}" Unciv-bin Unciv-bin-icon "Game;StrategyGame;" ""
  31. }