summaryrefslogtreecommitdiff
path: root/weechat-matrix/Pkgfile
blob: 8c1f7c374efcf7648a34289916413d274122137e (plain)
    1 # Description: WeeChat Matrix protocol script written in Python
    2 # URL: https://github.com/poljar/weechat-Matrix
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: python3-matrix-nio python3-webcolors weechat
    5 
    6 name=weechat-matrix
    7 version=0.3.0
    8 release=1
    9 source=(https://github.com/poljar/weechat-matrix/archive/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   cd $name-$version
   13   dephell deps convert --from pyproject.toml --to setup.py
   14   /usr/bin/python3 setup.py build
   15   /usr/bin/python3 setup.py install --prefix=/usr \
   16     --root=$PKG \
   17     --skip-build
   18   install -Dm755 main.py $PKG/usr/share/weechat/python/weechat-matrix.py
   19   for _script in matrix_decrypt matrix_sso_helper matrix_upload
   20   do
   21     install -Dm755 contrib/$_script.py $PKG/usr/bin/$_script
   22   done
   23 }

Generated by cgit