blob: 44d2f825a9c6240bc7d7e3fcce0cb3dcd03f07ed (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit wrapper
DESCRIPTION="Enemy Territory: Quake Wars dedicated server"
HOMEPAGE="https://www.splashdamage.com/content/et-quake-wars-standalone-server-linux"
SRC_URI="ETQW-server-${PV}-full.x86.run"
S="${WORKDIR}"/data
LICENSE="ETQW"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="bindist fetch strip"
RDEPEND="sys-libs/glibc"
BDEPEND="app-arch/unzip"
dir=/opt/${PN}
QA_PREBUILT="${dir#1}/pb/*.so
${dir#1}/*.x86
${dir#1}/*.so*"
pkg_nofetch() {
einfo "Please download ${A} from ${HOMEPAGE} and copy it into your DISTDIR directory."
}
src_unpack() {
tail -c +194885 "${DISTDIR}"/${A} > ${A}.zip || die
unpack ./${A}.zip
rm -f ${A}.zip || die
}
src_install() {
insinto "${dir}"
doins -r base pb *.txt
exeinto "${dir}"
doexe etqwded.x86 *.so*
make_wrapper ${PN} ./etqwded.x86 "${dir}" "${dir}"
}
|