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

EAPI=7

DESCRIPTION="Ancient Domains Of Mystery rogue-like game"
HOMEPAGE="https://www.adom.de/"
SRC_URI="https://www.adom.de/adom/download/linux/${P//.}-elf.tar.gz"

LICENSE="adom"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="strip" #bug #137340

RDEPEND="sys-libs/ncurses-compat:5[abi_x86_32(-)]"

S=${WORKDIR}/${PN}

src_install() {
	exeinto "/opt/bin"
	doexe adom

	keepdir "/var/games/${PN}"
	echo "/var/games/${PN}" > adom_ds.cfg
	insinto /etc
	doins adom_ds.cfg

	edos2unix adomfaq.txt
	dodoc adomfaq.txt manual.doc readme.1st
}