blob: 63dc8c1acd96193c02107cc3d1fcd9b559fbbe26 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop eutils unpacker-nixstaller
TIMESTAMP="2013-05-21"
DESCRIPTION="An action role-playing game, made by the creators of Diablo"
HOMEPAGE="http://torchlightgame.com/"
SLOT="0"
LICENSE="all-rights-reserved"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="fetch"
SRC_URI="Torchlight-${TIMESTAMP}.sh"
RDEPEND="app-arch/bzip2
app-arch/xz-utils
dev-libs/expat
dev-libs/zziplib
media-libs/fontconfig
media-libs/freeimage
media-libs/freetype
media-libs/ilmbase
media-libs/lcms
media-libs/libpng
media-libs/libraw
media-libs/openexr
media-libs/tiff
sys-apps/util-linux
sys-libs/zlib
virtual/jpeg
x11-libs/libdrm
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libXaw
x11-libs/libxcb
x11-libs/libXdamage
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXft
x11-libs/libXi
x11-libs/libXinerama
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXt
x11-libs/libXxf86vm"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
MY_PN="Torchlight"
QA_PRESTRIPPED="
opt/torchlight/lib64/*
opt/torchlight/lib/*
"
pkg_nofetch() {
ewarn
ewarn "Place ${A} to ${DISTDIR}"
ewarn
}
src_unpack() {
local arch;
use x86 && arch="x86"
use amd64 && arch="x86_64"
nixstaller_unpack "subarch" \
"instarchive_all" \
"instarchive_linux_${arch}" \
"deps/Ogre/Ogre_files_linux_${arch}" \
"deps/fmod/fmod_files_linux_${arch}" \
"deps/pcre/pcre_files_linux_${arch}" \
"deps/SDL2/SDL2_files_linux_${arch}" \
"deps/CEGUI/CEGUI_files_linux_${arch}"
# We just installed some crap to avoid broken depends
}
src_install() {
local dir="/opt/${PN}"
insinto "${dir}"
doins -r icons music logo.bmp pak.zip resources.cfg "$(get_libdir)"
exeinto "${dir}"
local exe
if use amd64 ; then
exe="${MY_PN}".bin.x86_64
fi
if use x86 ; then
exe="${MY_PN}".bin.x86
fi
doexe "${exe}"
make_wrapper "${PN}" "./${exe}" "${dir}" "${dir}/$(get_libdir)"
doicon "${MY_PN}.png" || die
make_desktop_entry "${PN}" "${MY_PN}" "${MY_PN}"
dodoc README.linux
}
|