From 313920e96e5bad289feb09b3f28daabbe64e1a54 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 5 Nov 2023 22:28:37 +0100 Subject: [PATCH 1/2] New package: python3-mautrix-0.20.2. --- srcpkgs/python3-mautrix/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-mautrix/template diff --git a/srcpkgs/python3-mautrix/template b/srcpkgs/python3-mautrix/template new file mode 100644 index 0000000000000..78ad7fd72f1d5 --- /dev/null +++ b/srcpkgs/python3-mautrix/template @@ -0,0 +1,18 @@ +# Template file for 'python3-mautrix' +pkgname=python3-mautrix +version=0.20.2 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-aiohttp python3-attrs python3-yarl python3-magic olm-python3" +checkdepends="${depends} python3-pytest" +short_desc="Asyncio Matrix framework" +maintainer="Luca Matei Pintilie " +license="MPL-2.0" +homepage="https://github.com/mautrix/python" +changelog="https://github.com/mautrix/python/releases" +distfiles="https://github.com/mautrix/python/archive/refs/tags/v$version.tar.gz" +checksum=f888f58a6a70c92cf2d2b51abc3faf0e118b5ba706e687020905ed03579fe98b + +# Requires a bunch of dependencies not used by Heisenbridge +make_check=no From e98dbe42751d39803e60930a29ae3dd8a89d5cc4 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 5 Nov 2023 22:29:06 +0100 Subject: [PATCH 2/2] New package: heisenbridge-1.14.6. --- srcpkgs/heisenbridge/files/heisenbridge/run | 5 +++++ srcpkgs/heisenbridge/template | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 srcpkgs/heisenbridge/files/heisenbridge/run create mode 100644 srcpkgs/heisenbridge/template diff --git a/srcpkgs/heisenbridge/files/heisenbridge/run b/srcpkgs/heisenbridge/files/heisenbridge/run new file mode 100644 index 0000000000000..bb66faea14994 --- /dev/null +++ b/srcpkgs/heisenbridge/files/heisenbridge/run @@ -0,0 +1,5 @@ +#!/bin/sh +exec 2>&1 +[ -r ./conf ] && . ./conf + +exec chpst -u nobody:nogroup heisenbridge --config /etc/heisenbridge.yaml ${OPTS:="http://localhost:8008"} diff --git a/srcpkgs/heisenbridge/template b/srcpkgs/heisenbridge/template new file mode 100644 index 0000000000000..b7601ee65531d --- /dev/null +++ b/srcpkgs/heisenbridge/template @@ -0,0 +1,21 @@ +# Template file for 'heisenbridge' +pkgname=heisenbridge +version=1.14.6 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-irc python3-ruamel.yaml python3-mautrix python3-socks python3-aiohttp" +checkdepends="$depends python3-pytest" +short_desc="Bouncer-style Matrix IRC bridge" +maintainer="Luca Matei Pintilie " +license="MIT" +homepage="https://github.com/hifi/heisenbridge" +changelog="https://github.com/hifi/heisenbridge/releases" +# distfiles="https://github.com/hifi/heisenbridge/releases/download/v$version/heisenbridge-$version.tar.gz" +distfiles="https://github.com/hifi/heisenbridge/archive/refs/tags/v$version.tar.gz" +checksum=0372a06055147f0402035897f6782bce9a24df0d290b8c054d24b33ba81d27da + +post_install() { + vsv heisenbridge + vlicense LICENSE +}