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

EAPI=8

inherit desktop wrapper

DESCRIPTION="Try to solve puzzles that take place in a relaxing zen garden."
HOMEPAGE="http://www.lexaloffle.com/zen.htm"
SRC_URI="amd64? ( ${PN}_${PV}_amd64.zip )
	x86? ( ${PN}_${PV}_i386.zip )"
RESTRICT="fetch"

LICENSE="Voxatron"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="app-arch/unzip"
RDEPEND="media-libs/libsdl
	x11-libs/libX11
	x11-libs/libxcb"

pkg_nofetch() {
	ewarn
	ewarn "Place ${A} to ${PORTAGE_ACTUAL_DISTDIR}"
	ewarn
}

S="${WORKDIR}/${PN}"

src_install() {
	local dir="/opt/${PN}"
	insinto ${dir}
	doins zen.dat
	exeinto ${dir}
	doexe zen
	make_wrapper ${PN} ./zen ${dir} ${dir}
	newicon lexaloffle-zen.png ${PN}.png
	make_desktop_entry "${PN}" "Zen Puzzle Garden" "${PN}"
	dodoc zen.txt
}