summaryrefslogtreecommitdiff
blob: e24d037ae4bb67d60b2cf046a3a11768bcbce410 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit unpacker

DEMO="desc${PV//.}sw.exe"

DESCRIPTION="Demo data files for Descent 1"
HOMEPAGE="https://www.interplay.com"
SRC_URI="https://icculus.org/d2x/data/${DEMO}
	ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"

RDEPEND="!games-action/descent1-data"

BDEPEND="app-arch/unzip
	app-arch/arj"

S="${WORKDIR}"

src_unpack() {
	unpack_zip ${A}

	mv DESCENT2.SOW DESCENT1.S01 || die
	arj e -v -y -_ DESCENT1.SOW || die
}

src_install() {
	insinto /usr/share/games/d1x
	doins descent.{hog,pig}
	dodoc *.txt
}

pkg_postinst() {
	elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
	echo
}