blob: 30085844f2a3caec7920151268c47b61a083ad8d (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils unpacker
DESCRIPTION="Famous 2D shooting game"
HOMEPAGE="http://www.snkplaymore.co.jp/us/games/steam/metalslug3/"
SRC_URI="MetalSlug3-Linux-$(ver_rs 1-2 -).sh"
RESTRICT="fetch strip"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip"
RDEPEND="
media-libs/libsdl2
media-libs/sdl2-mixer
sys-libs/zlib
"
S="${WORKDIR}/data"
pkg_nofetch() {
einfo ""
einfo "Please buy and download \"${SRC_URI}\" from"
einfo "HumbleIndieBundle or ${HOMEPAGE}"
einfo "and move/link it to \"${DISTDIR}\""
einfo ""
}
src_install() {
local arch;
use amd64 && arch="x86_64";
use x86 && arch="x86";
# Install documentation
dodoc noarch/README.linux noarch/LICENSES.txt noarch/ARPHICPL.TXT
rm noarch/README.linux noarch/LICENSES.txt noarch/ARPHICPL.TXT
# Install data
insinto "/opt/${PN}"
doins -r noarch/*
exeinto "/opt/${PN}"
doexe "${arch}/MetalSlug3.bin.${arch}"
# Install icon and desktop file
newicon "noarch/icon.png" "${PN}.png"
make_desktop_entry "${PN}" "Metal Slug 3" "${PN}"
make_wrapper "${PN}" "./MetalSlug3.bin.${arch}" "/opt/${PN}"
}
|