blob: d6263d47f44a1aba645146aae2f209f6df740199 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit desktop xdg
MY_PV=$(ver_cut 1-2)
DESCRIPTION="Free of cost Chinese chess software for Windows"
HOMEPAGE="http://xiexiemaster.com/"
SRC_URI="http://xiexiemaster.com/files/XXFreeware${MY_PV}.XInstaller.exe"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/p7zip"
RDEPEND="virtual/wine"
S="${WORKDIR}"
RESTRICT="mirror strip"
src_unpack() {
:
}
src_compile() {
:
}
src_install() {
local dir=/opt/${PN%-bin}
dodir ${dir}
( cd "${D}"/${dir} && 7z e "${DISTDIR}/${A}" ) || die
make_desktop_entry "wine ${dir}/XieXieFreeware.exe" 'XieXie' '' 'Game'
mv "${D}"/usr/share/applications/{*,${PN}}.desktop || die
}
|