36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# python 3 is supposed to work fine, but my weechat was compiled with python 2 support only
|
||
|
pip_bin="pip2"
|
||
|
py_bin="python2"
|
||
|
source_dir="$HOME/code/open-source"
|
||
|
|
||
|
# OPTIONAL: configure upload helper scripts as described here:
|
||
|
# https://github.com/poljar/weechat-matrix#uploads
|
||
|
|
||
|
# you will need libolm: `pacaur -S libolm` or `sudo apt-get install libolm-dev`
|
||
|
|
||
|
pushd "$source_dir" || exit 1
|
||
|
|
||
|
git clone https://github.com/poljar/weechat-matrix.git "$source_dir/weechat-matrix"
|
||
|
git clone https://github.com/poljar/matrix-nio.git "$source_dir/matrix-nio"
|
||
|
|
||
|
sudo "$pip_bin" install pyOpenSSL typing webcolors future atomicwrites attrs logbook pygments
|
||
|
sudo "$pip_bin" install -e git+https://github.com/poljar/python-olm.git@master#egg=python-olm-0
|
||
|
|
||
|
popd || exit 2
|
||
|
pushd "$source_dir/matrix-nio" || exit 3
|
||
|
|
||
|
sudo "$pip_bin" install -r ./rtd-requirements.txt/
|
||
|
sudo "$py_bin" ./setup.py install
|
||
|
|
||
|
popd || exit 4
|
||
|
pushd "$source_dir/weechat-matrix" || exit 5
|
||
|
|
||
|
make install
|
||
|
|
||
|
popd || exit 6
|
||
|
|
||
|
# done! (re)start weechat and proceed to configure:
|
||
|
# https://github.com/poljar/weechat-matrix#configuration
|