1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 CMAKE_IN_SOURCE_BUILD="yes"
9 DESCRIPTION="The Dungeons of Moria, a single player roguelike game, also known as Umoria"
10 HOMEPAGE="https://umoria.org/"
11 SRC_URI="https://github.com/dungeons-of-moria/umoria/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~m68k ~x86"
18 RDEPEND="acct-group/gamestat
19 >=sys-libs/ncurses-6.0:0="
21 BDEPEND="virtual/pkgconfig"
23 S="${WORKDIR}/umoria-${PV}"
26 "${FILESDIR}/${P}-gentoo-paths.patch"
27 "${FILESDIR}/${P}-tinfo.patch"
32 sed -i "s/@PF@/${PF}/" src/config.cpp || die
33 hprefixify src/config.cpp
37 newbin umoria/umoria moria
39 insinto /usr/share/moria
42 insinto /var/lib/moria
44 fowners root:gamestat /var/lib/moria/scores.dat
45 fperms g+w /var/lib/moria/scores.dat
47 doman "${FILESDIR}"/${PN}.6
48 dodoc -r AUTHORS README.md docs
50 # The game binary will look for plain text LICENSE
51 insinto /usr/share/doc/${PF}
53 docompress -x /usr/share/doc/${PF}/LICENSE
58 elog "Please add users to the 'gamestat' group, so they can run Moria:"
59 elog " usermod -aG gamestat <user>"