From 49e84718cc37efe0853a88fb2667c52f436907a1 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Mon, 1 Jan 2024 17:38:27 +0100 Subject: [PATCH] New package: matterbridge-1.26.0. --- srcpkgs/matterbridge/files/matterbridge/run | 5 +++++ srcpkgs/matterbridge/template | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 srcpkgs/matterbridge/files/matterbridge/run create mode 100644 srcpkgs/matterbridge/template diff --git a/srcpkgs/matterbridge/files/matterbridge/run b/srcpkgs/matterbridge/files/matterbridge/run new file mode 100644 index 00000000000..f88aa378559 --- /dev/null +++ b/srcpkgs/matterbridge/files/matterbridge/run @@ -0,0 +1,5 @@ +#!/bin/sh +exec 2>&1 +[ -r ./conf ] && . ./conf + +exec matterbridge -conf "${MATTERBRIDGE_CONFIG:-/etc/matterbridge.toml}" diff --git a/srcpkgs/matterbridge/template b/srcpkgs/matterbridge/template new file mode 100644 index 00000000000..ded9da5f26b --- /dev/null +++ b/srcpkgs/matterbridge/template @@ -0,0 +1,20 @@ +# Template file for 'matterbridge' +pkgname=matterbridge +version=1.26.0 +revision=1 +build_style=go +go_import_path="github.com/42wim/matterbridge" +short_desc="Bridge between various chatting services" +maintainer="Luca Matei Pintilie " +license="Apache-2.0" +homepage="https://github.com/42wim/matterbridge/" +changelog="https://github.com/42wim/matterbridge/releases/" +distfiles="https://github.com/42wim/matterbridge/archive/refs/tags/v$version.tar.gz" +checksum=00e1bbfe3b32f2feccf9a7f13a6f12b1ce28a5eb04cc7b922b344e3493497425 + +post_install() { + for _conf in matterbridge.toml.*; do + vsconf "${_conf}" + done + vsv matterbridge +}