blob: 691f9a2b3a163bba99fc60fd8579f1cbc5e2d0d7 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
DESCRIPTION="Tcl/Tk variant of the well-known 15-puzzle game"
HOMEPAGE="https://www.naskita.com/linux/penguzzle/penguzzle.shtml"
SRC_URI="https://www.naskita.com/linux/${PN}/${PN}.zip -> ${P}.zip"
LICENSE="penguzzle"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-lang/tk:0=
dev-tcltk/tclx"
BDEPEND="app-arch/unzip"
S="${WORKDIR}/${PN}${PV}"
src_prepare() {
default
sed -i \
-e "s:~/puzz/images:/usr/share/${PN}:" \
lib/init \
|| die "sed init failed"
sed -i \
-e "s:~/puzz/lib:/usr/$(get_libdir)/${PN}:" \
bin/${PN} \
|| die "sed ${PN} failed"
eapply "${FILESDIR}"/${P}-tclx.patch
}
src_install() {
dobin bin/${PN}
insinto /usr/share/${PN}
doins images/img0.gif
insinto /usr/$(get_libdir)/${PN}
doins lib/init
newicon images/img0.gif ${PN}.gif
make_desktop_entry ${PN} "Penguzzle" /usr/share/pixmaps/${PN}.gif
einstalldocs
}
|