diff options
author | 2017-10-15 21:13:52 -0400 | |
---|---|---|
committer | 2017-10-15 21:13:52 -0400 | |
commit | 0fa5f63b8348346b4dc06fb50a8817ad119ce33b (patch) | |
tree | f865adbce72634a3f161fdc8847df128b6caa371 /games-action | |
parent | fix Manifest (diff) | |
download | superposition-0fa5f63b8348346b4dc06fb50a8817ad119ce33b.tar.gz superposition-0fa5f63b8348346b4dc06fb50a8817ad119ce33b.tar.bz2 superposition-0fa5f63b8348346b4dc06fb50a8817ad119ce33b.zip |
droid assault
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/droidassalt/droidassault-20151219.ebuild | 65 | ||||
-rw-r--r-- | games-action/droidassalt/files/20151219-launcher.patch | 54 | ||||
-rw-r--r-- | games-action/droidassalt/metadata.xml | 11 |
3 files changed, 130 insertions, 0 deletions
diff --git a/games-action/droidassalt/droidassault-20151219.ebuild b/games-action/droidassalt/droidassault-20151219.ebuild new file mode 100644 index 0000000..ddd86f7 --- /dev/null +++ b/games-action/droidassalt/droidassault-20151219.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils java-pkg-2 + +DESCRIPTION="Blaster battles with hordes of rampaging killer robots!" +HOMEPAGE="http://www.puppygames.net/droid-assault" +SRC_URI="DroidAssalt-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:2.2.2" +RDEPEND="${DEPEND}" + +RESTRICT="bindist fetch mirror strip" +S="${WORKDIR}/droidassalt" + +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 droidassalt.sh || die "doexe" + + make_wrapper ${PN} ./droidassalt.sh "${dir}" "${dir}" + doicon droidassault.png + make_desktop_entry ${PN} "Droid Assault" droidassalt Game +} diff --git a/games-action/droidassalt/files/20151219-launcher.patch b/games-action/droidassalt/files/20151219-launcher.patch new file mode 100644 index 0000000..f78b789 --- /dev/null +++ b/games-action/droidassalt/files/20151219-launcher.patch @@ -0,0 +1,54 @@ +--- droidassault.sh 2015-12-18 19:14:42.000000000 -0500 ++++ droidassault.patched.sh 2017-10-15 21:11:37.372845150 -0400 +@@ -7,47 +7,15 @@ + SCRIPT="`basename \"$0\"`" + GAMEDIR="${HOME}/.droid_assault" + LOGFILE="${GAMEDIR}/${SCRIPT}.log" +-INSTDIR="`dirname \"$0\"`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`" +- ++INSTDIR="/opt/droidassalt-20151219" ++cd "${INSTDIR}" + [[ ! -d "${GAMEDIR}" ]] && mkdir -m 0755 "${GAMEDIR}" + +-if [ 1 == 0 ] +-then +- # 32 bit only +- JVM="./bin/java32" +- BOOTCLASSPATH="./lib/rt32.jar" +- +-elif [ `uname -m` == "i686" ] +-then +- JVM="./bin/java32" +- BOOTCLASSPATH="./lib/rt32.jar" +- +- # Decompress JVM on first run +- if [ ! -d "bin" ] +- then +- ./7za_i386 x jvm.7z +- chmod u+x bin/java32 +- rm -f 7za_* jvm.7z +- fi +-else +- JVM="./bin/java64" +- BOOTCLASSPATH="./lib/rt64.jar" +- +- # Decompress JVM on first run +- if [ ! -d "bin" ] +- then +- ./7za_amd64 x jvm.7z +- chmod u+x bin/java64 +- rm -f 7za_* jvm.7z +- fi +-fi +- + # XMODIFIERS is cleared here to prevent SCIM screwing up keyboard input +-_JAVA_OPTIONS= XMODIFIERS= "${JVM}" \ ++_JAVA_OPTIONS= XMODIFIERS= "ijava" \ + -server \ +- -Xbootclasspath/p:${BOOTCLASSPATH} \ + -Djava.library.path="${INSTDIR}" \ +- -Dorg.lwjgl.librarypath="${INSTDIR}" \ ++ -Dorg.lwjgl.librarypath="/usr/lib64/lwjgl-2.9" \ + -Dorg.lwjgl.util.NoChecks=false \ + -Djava.net.preferIPv4Stack=true \ + -Dnet.puppygames.applet.Launcher.resources=resources-hib.dat \ diff --git a/games-action/droidassalt/metadata.xml b/games-action/droidassalt/metadata.xml new file mode 100644 index 0000000..4fe0e61 --- /dev/null +++ b/games-action/droidassalt/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> +<email>phil_miess@yahoo.com</email> +<name>Philip Miess</name> +</maintainer> +<longdescription lang="en"> +Discover a unique tactical arcade shooter, with the fun addictive gameplay of classics like Paradroid and Quazatron. You'll need your wits and the help of your acquired droid army to stay alive in this fast-paced retro actionfest! +</longdescription> +</pkgmetadata> |