blob: 334a291b0d2dfd72d5c41f3446e35c1a5eeca8b2 (
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
44
45
46
47
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
DESCRIPTION="New, improved, text-based modern games"
HOMEPAGE="https://github.com/abakh/nbsdgames"
SRC_URI="https://github.com/abakh/nbsdgames/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="~amd64"
# launch-test
RESTRICT="test"
DEPEND="sys-libs/ncurses:="
RDEPEND="
${DEPEND}
acct-group/gamestat
"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-group_scores.patch
)
src_compile() {
tc-export CC PKG_CONFIG
append-cflags -DSCORES_GW
emake PREFIX="${EPREFIX}" SCORES_DIR="${EPREFIX}/var/games/${PN}" nb
}
src_install() {
emake PREFIX="${EPREFIX}" DESTDIR="${D}" nbinstall nbmanpages
local b
for b in "${ED}"/usr/bin/*; do
fowners :gamestat "${b#${ED}}"
fperms g+s "${b#${ED}}"
done
diropts -m 2770 -g gamestat
dodir /var/games/${PN}
keepdir /var/games/${PN}
}
|