mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
games-server/among-sus: initial import
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
1
games-server/among-sus/Manifest
Normal file
1
games-server/among-sus/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST among-sus-20210519.tar.gz 23784 BLAKE2B d9a215c0654f1db3d39e8ed10f792a464a1e843e863cbb5c986b6074885d10a9912ba143f8e1f692e001e7b495296b0cf92f1ce62cd533a0f7aabe871900cb5f SHA512 873a736a02f921758f3c5faac0b5d46c5f5f36f605fbfb0c5da42544a4fbd27bc73d1a2f1f82468c3f173cf4c25a28eee35d9f6b83c0809c59fb0aa954d925ab
|
||||
35
games-server/among-sus/among-sus-20210519.ebuild
Normal file
35
games-server/among-sus/among-sus-20210519.ebuild
Normal 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}
|
||||
}
|
||||
1
games-server/among-sus/files/among-sus.confd
Normal file
1
games-server/among-sus/files/among-sus.confd
Normal file
@@ -0,0 +1 @@
|
||||
# AMOGUS_PORT=1234
|
||||
18
games-server/among-sus/files/among-sus.initd
Normal file
18
games-server/among-sus/files/among-sus.initd
Normal 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
|
||||
}
|
||||
14
games-server/among-sus/metadata.xml
Normal file
14
games-server/among-sus/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user