summaryrefslogtreecommitdiff
path: root/games-arcade/syobon/syobon-1.0.1-r1.ebuild
blob: 36b2861a14917ad597745dcc317ae8dbe8303c8e (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

DESCRIPTION="Syobon Action (also known as Cat Mario or Neko Mario)"
HOMEPAGE="http://zapek.com/?p=189"
SRC_URI="http://zapek.com/wp-content/uploads/2010/09/${PN}_${PV}_src.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	media-libs/libsdl[sound,video,joystick]
	media-libs/sdl-gfx
	media-libs/sdl-image[png]
	media-libs/sdl-ttf
	media-libs/sdl-mixer[vorbis]
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${PN}-1.0.1-narrowing.patch
	"${FILESDIR}"/${PN}-1.0.1-lto.patch
)

src_compile() {
	emake GAMEDATA="/usr/share/${PN}"
}

src_install() {
	dobin ${PN}

	insinto "/usr/share/${PN}"
	doins -r BGM SE res
	einstalldocs

	make_desktop_entry ${PN}
}