unciv-bin-4.12.5.ebuild 886 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. MY_PN=Unciv
  6. MY_P=${MY_PN}-${PV}
  7. S=${WORKDIR}/
  8. DESCRIPTION="Civ V remake for Android & Desktop"
  9. HOMEPAGE="https://github.com/yairm210/Unciv"
  10. SRC_URI="https://github.com/yairm210/Unciv/releases/download/${PV}/${MY_PN}.jar -> ${MY_P}.jar"
  11. #https://github.com/yairm210/Unciv/releases/download/4.8.1/Unciv.jar
  12. LICENSE="MPL-2.0"
  13. SLOT="0"
  14. KEYWORDS="~amd64"
  15. DEPEND=""
  16. #${DEPEND}
  17. RDEPEND="
  18. || ( virtual/jre:11 virtual/jre:17 )
  19. "
  20. BDEPEND=""
  21. src_unpack() {
  22. cp -v "${DISTDIR}/${A}" . || die
  23. unzip ${A} ExtraImages/Icon.png || die
  24. }
  25. src_install() {
  26. java-pkg_newjar "${MY_P}.jar"
  27. java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
  28. newicon ExtraImages/Icon.png Unciv-bin-icon.png
  29. make_desktop_entry "${PN}" Unciv-bin Unciv-bin-icon "Game;StrategyGame;" ""
  30. }