aboutsummaryrefslogtreecommitdiff
blob: 1642a2adf924e1874d3307dc69a35ecaeacaefda (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
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic toolchain-funcs

COMMIT="554e60bf52e3fa931661b9414189a92bb8f69d78"
DESCRIPTION="Among Us, but it's a text adventure"
HOMEPAGE="https://sr.ht/~martijnbraam/among-sus/"
SRC_URI="https://tildegit.org/tildeverse/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+notifications"

src_configure() {
	tc-export CC
	append-cflags -Wno-unused-result
	append-cppflags \
		-DVERSION=\\\"${COMMIT:0:7}\\\" \
		-DMOVEMENT_NOTIFICATIONS=$(usex notifications 1 0)
}

src_compile() {
	emake main
}

src_install() {
	newbin main ${PN}
	einstalldocs

	newinitd "${FILESDIR}"/${PN}.initd ${PN}
	newconfd "${FILESDIR}"/${PN}.confd ${PN}
}