gentoo-overlay/net-im/mautrix-signal-bin/mautrix-signal-bin-0.6.1.ebuild
Manuel Friedli cdccc749cf
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Add v0.6.1 of the mautrix-signal bridge.
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
2024-05-21 21:17:55 +02:00

44 lines
1.1 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="A Matrix-Signal puppeting bridge."
HOMEPAGE="https://docs.mau.fi/bridges/go/signal/index.html"
SRC_URI="https://github.com/mautrix/signal/releases/download/v${PV}/mautrix-signal-amd64 -> ${P}"
S="${WORKDIR}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ffmpeg postgres"
DEPEND="acct-user/mautrix-signal-bin"
RDEPEND="${DEPEND}
ffmpeg? ( media-video/ffmpeg[opus] )
postgres? ( >=dev-db/postgresql-10 )
!postgres? ( dev-db/sqlite )"
src_unpack() {
cp "${DISTDIR}/${P}" "${S}/mautrix-signal"
}
src_compile() {
:
}
src_install() {
exeinto /opt/mautrix-signal
doexe mautrix-signal
insinto /opt/mautrix-signal
newins "${FILESDIR}/example-config.yaml" config.yaml
systemd_dounit "${FILESDIR}"/mautrix-signal.service
fowners mautrix-signal-bin:mautrix-signal-bin /opt/mautrix-signal/mautrix-signal
fowners mautrix-signal-bin:mautrix-signal-bin /opt/mautrix-signal/config.yaml
fperms 0640 /opt/mautrix-signal/config.yaml
}