You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
CMAKE_IN_SOURCE_BUILD="yes"
|
||
5 years ago
|
inherit cmake prefix
|
||
6 years ago
|
|
||
|
DESCRIPTION="The Dungeons of Moria, a single player roguelike game, also known as Umoria"
|
||
|
HOMEPAGE="https://umoria.org/"
|
||
|
SRC_URI="https://github.com/dungeons-of-moria/umoria/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~amd64 ~m68k ~x86"
|
||
6 years ago
|
IUSE=""
|
||
|
|
||
5 years ago
|
RDEPEND="acct-group/gamestat
|
||
|
>=sys-libs/ncurses-6.0:0="
|
||
6 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
|
S="${WORKDIR}/umoria-${PV}"
|
||
|
|
||
5 years ago
|
PATCHES=( "${FILESDIR}/${PN}-5.7.12-gentoo-paths.patch" )
|
||
6 years ago
|
|
||
|
src_prepare() {
|
||
5 years ago
|
cmake_src_prepare
|
||
6 years ago
|
hprefixify src/config.cpp
|
||
6 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
newbin umoria/umoria moria
|
||
|
|
||
|
insinto /usr/share/moria
|
||
5 years ago
|
doins umoria/data/*.txt
|
||
6 years ago
|
|
||
|
insinto /var/lib/moria
|
||
5 years ago
|
doins umoria/scores.dat
|
||
3 years ago
|
fowners root:gamestat /var/lib/moria/scores.dat /usr/bin/${PN}
|
||
6 years ago
|
fperms g+w /var/lib/moria/scores.dat
|
||
|
|
||
|
doman "${FILESDIR}"/${PN}.6
|
||
5 years ago
|
dodoc -r AUTHORS CHANGELOG.md CONTRIBUTING.md README.md historical
|
||
6 years ago
|
}
|
||
6 years ago
|
|
||
|
pkg_postinst() {
|
||
|
elog
|
||
|
elog "Please add users to the 'gamestat' group, so they can run Moria:"
|
||
|
elog " usermod -aG gamestat <user>"
|
||
|
elog
|
||
|
}
|