summaryrefslogtreecommitdiff
blob: 5a3b7e2d4aa034e1d272f0bc0634eb96ac94820d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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="Armikrog is a unique stop motion clay animated point and click adventure game"
HOMEPAGE="http://armikrog.com/"
SRC_URI="Armikrog_Linux.x86_64.zip"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="bindist fetch"

MYGAMEDIR=/opt/${PN}
DEPEND="app-arch/unzip"
RDEPEND="${DEPEND}
		dev-libs/expat
		dev-libs/libbsd
		media-libs/glu
		media-libs/mesa
		x11-libs/libX11
		x11-libs/libXau
		x11-libs/libXcursor
		x11-libs/libXdamage
		x11-libs/libXdmcp
		x11-libs/libXext
		x11-libs/libXfixes
		x11-libs/libXrandr
		x11-libs/libXrender
		x11-libs/libXxf86vm
		x11-libs/libdrm
		x11-libs/libxcb
		x11-libs/libxshmfence
"
BDEPEND=""
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_64

		insinto ${MYGAMEDIR}
		exeinto ${MYGAMEDIR}
		newexe  "Armikrog.${arch}" "Armikrog"
		doins -r  "Armigrog_Data"

		newicon -s 128 MouseCraft_Data/Resources/UnityPlayer.png ${PN}.png
		make_wrapper ${PN} "${MYGAMEDIR}/Armikrog" "${PN}"
		make_desktop_entry "${PN}" "Armikrog" "${PN}" "Game"

	 	domenu ${PN}

}

pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update

}

pkg_postrm() {
	gnome2_icon_cache_update
}