From f6332a43c35387c4a2dea1746be5fd092890ae0e Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 27 Jun 2022 23:09:07 +0100 Subject: added lf and iptables --- repo/weechat-matrix/weechat-matrix.xibuild | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/weechat-matrix/weechat-matrix.xibuild (limited to 'repo/weechat-matrix/weechat-matrix.xibuild') diff --git a/repo/weechat-matrix/weechat-matrix.xibuild b/repo/weechat-matrix/weechat-matrix.xibuild new file mode 100644 index 0000000..fb9134e --- /dev/null +++ b/repo/weechat-matrix/weechat-matrix.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="weechat-matrix" +DESC="WeeChat Matrix protocol script" + +MAKEDEPS="poetry python-build python-importlib-metadata python-installer python-poetry-core python-wheel python-webcolors python-hypothesis python-atomicwrites python-nio python-exceptiongroup python-sortedcontainers" +DEPS="python-build python-importlib-metadata python-poetry-core python-openssl python-logbook python-future python-nio python-webcolors python-matrix-nio python-atomicwrites" + +SOURCE="https://github.com/poljar/weechat-matrix.git" + +build() { + sed -i 's_#!/usr/bin/env -S python3 -u_#!/usr/bin/env python3 -u_g' contrib/matrix_sso_helper.py contrib/matrix_upload.py + GIT_DIR=. python3 -m build --skip-dependency-check --no-isolation --wheel . +} + +package() { + python3 -m installer --destdir="$PKG_DEST" dist/*.whl + install -Dm755 main.py "$PKG_DEST/usr/share/weechat/python/weechat-matrix.py" + + for _script in matrix_decrypt matrix_sso_helper matrix_upload + do + install -Dm755 "contrib/$_script.py" "$PKG_DEST/usr/bin/$_script" + done +} + +postinstall () { +cat <