blob: 72ae024af233c7e96ff4cdbd8b20dd4f1b498b9e (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop wrapper
MY_PN="${PN/-bin/}"
DESCRIPTION="Blood remake"
HOMEPAGE="https://www.transfusion-game.com/"
SRC_URI="mirror://sourceforge/blood/${MY_PN}-1.0-linux.i386.zip
mirror://sourceforge/blood/${MY_PN}-patch-${PV}-linux.i386.zip
mirror://gentoo/${MY_PN}.png"
S="${WORKDIR}/${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="strip"
RDEPEND="
sys-libs/glibc
x11-libs/libX11
x11-libs/libXext
"
DEPEND="${RDEPEND}"
BDEPEND="app-arch/unzip"
QA_PREBUILT="
opt/transfusion/transfusion-dedicated
opt/transfusion/transfusion-glx
"
dir="/opt/${MY_PN}"
Ddir="${D}/${dir}"
src_install() {
# install everything that looks anything like docs...
dodoc ${MY_PN}/doc/*.txt ${MY_PN}/*txt qw/*txt
HTML_DOCS="${MY_PN}/doc/*.html" einstalldocs
#...then mass copy everything to the install dir...
dodir ${dir}
cp -R * "${Ddir}" || die
# ...and remove the docs since we don't need them installed twice.
rm -rf \
"${Ddir}"/${MY_PN}/doc \
"${Ddir}"/qw/*txt \
"${Ddir}"/${MY_PN}/*txt || die
doicon "${DISTDIR}"/${MY_PN}.png
make_wrapper ${MY_PN} ./${MY_PN}-glx "${dir}" "${dir}"
make_desktop_entry ${MY_PN} "Transfusion" ${MY_PN}
}
|