24 lines
779 B
Plaintext
24 lines
779 B
Plaintext
|
# Description: WeeChat Matrix protocol script written in Python
|
||
|
# URL: https://github.com/poljar/weechat-Matrix
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Depends on: python3-matrix-nio python3-webcolors weechat
|
||
|
|
||
|
name=weechat-matrix
|
||
|
version=0.2.0
|
||
|
release=1
|
||
|
source=(https://github.com/poljar/weechat-matrix/archive/$version/$name-$version.tar.gz)
|
||
|
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
dephell deps convert --from pyproject.toml --to setup.py
|
||
|
/usr/bin/python3 setup.py build
|
||
|
/usr/bin/python3 setup.py install --prefix=/usr \
|
||
|
--root=$PKG \
|
||
|
--skip-build
|
||
|
install -Dm755 main.py $PKG/usr/share/weechat/python/weechat-matrix.py
|
||
|
for _script in matrix_decrypt matrix_sso_helper matrix_upload
|
||
|
do
|
||
|
install -Dm755 contrib/$_script.py $PKG/usr/bin/$_script
|
||
|
done
|
||
|
}
|