games-server/among-sus: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-06-28 06:43:14 +05:00
parent 8f70aa7e7a
commit f7d989bc03
5 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST among-sus-20210519.tar.gz 23784 BLAKE2B d9a215c0654f1db3d39e8ed10f792a464a1e843e863cbb5c986b6074885d10a9912ba143f8e1f692e001e7b495296b0cf92f1ce62cd533a0f7aabe871900cb5f SHA512 873a736a02f921758f3c5faac0b5d46c5f5f36f605fbfb0c5da42544a4fbd27bc73d1a2f1f82468c3f173cf4c25a28eee35d9f6b83c0809c59fb0aa954d925ab

View File

@@ -0,0 +1,35 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic
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() {
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}
}

View File

@@ -0,0 +1 @@
# AMOGUS_PORT=1234

View File

@@ -0,0 +1,18 @@
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="among-sus server"
description="Among Us, but it's a text adventure"
AMOGUS_PORT=${AMOGUS_PORT:-1234}
command="/usr/bin/among-sus"
command_args="-p ${AMOGUS_PORT}"
command_user=nobody:nobody
command_background=1
pidfile=/run/among-sus.pid
depend() {
need net
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
<upstream>
<bugs-to>https://todo.sr.ht/~martijnbraam/among-sus</bugs-to>
</upstream>
<use>
<flag name="notifications">Notify players you're moving</flag>
</use>
</pkgmetadata>