43 lines
783 B
Bash
43 lines
783 B
Bash
# Copyright 2026 Shin'ya Minazuki
|
|
|
|
EAPI=8
|
|
|
|
inherit go-module systemd
|
|
|
|
DESCRIPTION="A simple chat bridge"
|
|
HOMEPAGE="https://github.com/42wim/matterbridge"
|
|
SRC_URI="
|
|
https://github.com/42wim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
https://mirror.chaotic.ninja/software/${PN}-vendor.tar.gz
|
|
"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="
|
|
acct-user/matterbridge
|
|
acct-group/matterbridge
|
|
"
|
|
BDEPEND="
|
|
acct-user/matterbridge
|
|
acct-group/matterbridge
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_compile() {
|
|
ego build -o bin/${PN}
|
|
}
|
|
|
|
src_install() {
|
|
dobin bin/${PN}
|
|
newinitd "${FILESDIR}/${PN}.initd-r2" "${PN}"
|
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "For setting up Matterbridge, please refer to: "
|
|
elog "https://github.com/42wim/matterbridge/wiki"
|
|
}
|