diff options
Diffstat (limited to 'games-arcade/titanattacks/titanattacks-20151219-r2.ebuild')
-rw-r--r-- | games-arcade/titanattacks/titanattacks-20151219-r2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/games-arcade/titanattacks/titanattacks-20151219-r2.ebuild b/games-arcade/titanattacks/titanattacks-20151219-r2.ebuild new file mode 100644 index 0000000..e2ef9db --- /dev/null +++ b/games-arcade/titanattacks/titanattacks-20151219-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit java-pkg-2 + +DESCRIPTION="single-handedly turn back the evil invading alien army" +HOMEPAGE="http://www.puppygames.net/titan-attacks" +SRC_URI="TitanAttacks-HIB-20151219.tar.gz" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/jre-1.7:* + virtual/opengl + media-libs/openal + dev-java/gson + dev-java/lwjgl" +RDEPEND="${DEPEND}" + +RESTRICT="bindist fetch mirror strip" +S="${WORKDIR}/titanattacks" + +pkg_nofetch() { + einfo "Please download ${SRC_URI}" + einfo "from your personal page in Humble Bundle site" + einfo "(http://www.humblebundle.com) and place it in ${DISTDIR}" +} + +JAVA_RM_FILES=( + gson.jar + lwjgl.jar + lwjgl_util.jar + libjinput-linux.so + libjinput-linux64.so + liblwjgl.so + liblwjgl64.so + 7za_amd64 + 7za_i386 + jvm.7z +) +src_prepare() { + epatch "${FILESDIR}/${PV}-launcher.patch" + default +} + +src_install() { + local dir="/opt/${P}" + + java-pkg_jarinto "${dir}" + java-pkg_dojar *.jar + + java-pkg_sointo "${dir}" + java-pkg_doso libgdx.so libgdx64.so + + exeinto "${dir}" + doexe titanattacks.sh || die "doexe" + + make_wrapper ${PN} ./titanattacks.sh "${dir}" "${dir}" + doicon titanattacks.png + make_desktop_entry ${PN} "Titans Attacks" titanattacks Game +} |