summaryrefslogtreecommitdiff
blob: 6014bf696dec7d27f16de8e47b57cf83b8c2d212 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit desktop unpacker xdg

DESCRIPTION="Metal wrecking, robot hacking 360-degree shooter/platformer hybrid"
HOMEPAGE="https://rivethegame.com/"
SRC_URI="${PN^^}-Linux-2017-02-28.sh"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="bindist fetch splitdebug"

RDEPEND="
	media-libs/libsdl2[opengl,video]
	media-libs/openal
"

S="${WORKDIR}/data"

DIR="/opt/${PN}"
QA_PREBUILT="${DIR#/}/*"

pkg_nofetch() {
	einfo "Please buy and download ${SRC_URI} from:"
	einfo "  https://www.humblebundle.com/store/${PN}"
	einfo "and move it to your distfiles directory."
}

src_unpack() {
	unpack_zip ${A}
}

src_install() {
	exeinto "${DIR}"
	newexe x86_64/${PN^^}.bin.x86_64 ${PN^^}.bin
	dosym "../..${DIR}"/${PN^^}.bin /usr/bin/${PN}

	insinto "${DIR}"
	doins -r noarch/*

	newicon -s 256 noarch/app_icon.png ${PN}.png
	make_desktop_entry ${PN} ${PN^^}
}