summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/mousecraft/Manifest2
-rw-r--r--games-puzzle/mousecraft/mousecraft-1.2.ebuild81
2 files changed, 82 insertions, 1 deletions
diff --git a/games-puzzle/mousecraft/Manifest b/games-puzzle/mousecraft/Manifest
index 3702eea..273eeeb 100644
--- a/games-puzzle/mousecraft/Manifest
+++ b/games-puzzle/mousecraft/Manifest
@@ -1,3 +1,3 @@
DIST mousecraft_Linux.zip 518058773 BLAKE2B 69b8d1aeab820086fe5724b36ecf10e57b03986aef0ebdcb8b276f81aeac85cb0a8a0143534b5a94048e8c06207ce32ffc0738cd718a556451b7786d314c5b56 SHA512 1e4263cc3e13f97609c9890d167d4e84b7dd0dd0b35531e753cbc161e399f1ae6d0ca59de358175bec80316ee52d80902ad847ab361dcfab283de9caf48e41e8
-EBUILD mousecraft-1.ebuild 1485 BLAKE2B 1939dee75bf491a1d7ebf86cf887ed308aa8aee52159453f8fc9cacdeadfdc0cb1d1806ff5958a098ef06e12efecbf0f84deaf6d8579d193940815e04848b19e SHA512 08617265139962e5b6cb0c2c035c46b44938be98adf5cc09a31c538d51f994a0370c148fc7054f2baeedb955a1b17f653d832619cc761ad398db0cf3eca7dd0f
+EBUILD mousecraft-1.2.ebuild 1490 BLAKE2B 8b54285707a36687bb68ebebe9df73898bddbde9222725493bef0f4b52b074f74b47739145aa230220080b8492befbf65b48003db5ebcdf2700b2a6dff5a6a73 SHA512 c9292cd0deb5bc5cb824fb6a083866d0bdd6a2be596453482cc2bbe303a59c9e460f2c377f0cbaa30e061ea0bf994be772cb63dcd098ea0585ca6d210318714d
MISC metadata.xml 916 BLAKE2B 46177fac216cb7a8c4b2681eb946be198ff2ffa939af28c3ec6963c497ae732ae29c4e593525b7acc2b13a16b4ad3f8ccb5c38631983c2833e9458f7afdd7c95 SHA512 da27753a5a64121d0e93b0a18627cbed830da6e0cb94b3f66e968a9d0eb6008f131dd345899b39d748115a3121161c60e6339f7a8d5ce5975978263cb1d881c6
diff --git a/games-puzzle/mousecraft/mousecraft-1.2.ebuild b/games-puzzle/mousecraft/mousecraft-1.2.ebuild
new file mode 100644
index 0000000..939859b
--- /dev/null
+++ b/games-puzzle/mousecraft/mousecraft-1.2.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit unpacker eutils gnome2-utils
+
+DESCRIPTION="MouseCraft a cross between Tetris and Lemmings."
+HOMEPAGE="http://mouse-craft.com/"
+SRC_URI="mousecraft_Linux.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="bindist fetch"
+
+MYGAMEDIR=/opt/${PN}
+DEPEND="app-arch/unzip"
+RDEPEND="${DEPEND}
+ dev-libs/expat
+ dev-libs/libbsd
+ media-libs/mesa
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrender
+ x11-libs/libXxf86vm
+ x11-libs/libdrm
+ x11-libs/libxcb
+ x11-libs/libxshmfence
+"
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " https://www.humblebundle.com/store"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ local arch=x86
+ use amd64 && arch=x86_64
+
+ insinto ${MYGAMEDIR}
+ exeinto ${MYGAMEDIR}
+ newexe "MouseCraft.${arch}" "MouseCraft"
+ doins -r "MouseCraft_Data"
+
+ newicon -s 128 MouseCraft_Data/Resources/UnityPlayer.png ${PN}.png
+ make_wrapper ${PN} "${MYGAMEDIR}/MouseCraft" "${PN}"
+ make_desktop_entry "${PN}" "MouseCraft" "${PN}" "Game"
+
+ domenu ${PN}
+
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}