File tree 1 file changed +19
-11
lines changed
1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,30 @@ check_hash() {
8
8
echo " Hash verification success!"
9
9
}
10
10
11
- VERSION=" 1.8.4"
12
- HASH=" b60c0aad83e1452a1646aef2b7e223cb66cb9a9cae52aaafb3d4ac9f46688580"
11
+ pip_depends=(
12
+ " setuptools"
13
+ " requests"
14
+ )
15
+
16
+ for d in ${pip_depends[@]} ; do
17
+ echo " >> Installing $d (pip)"
18
+ pip install $d
19
+ done
20
+
21
+ SLIX_VERSION=" 1.8.4"
22
+ SLIX_HASH=" b60c0aad83e1452a1646aef2b7e223cb66cb9a9cae52aaafb3d4ac9f46688580"
13
23
14
24
echo " >> Downloading slixmpp"
15
- wget https://codeberg.org/poezio/slixmpp/archive/slix-$VERSION .tar.gz
25
+ wget -q --show-progress " https://codeberg.org/poezio/slixmpp/archive/slix-$SLIX_VERSION .tar.gz"
26
+ check_hash " slix-$SLIX_VERSION .tar.gz" " $SLIX_HASH "
27
+
16
28
echo " >> Extracting slixmpp"
17
- tar xf slix-$VERSION .tar.gz
29
+ tar xf " slix-$SLIX_VERSION .tar.gz"
18
30
19
- cd slixmpp
31
+ pushd slixmpp
20
32
echo " >> Installing slixmpp"
21
33
python3 setup.py install
22
- cd ..
23
-
24
- rm -rf slixmpp slix-$VERSION .tar.gz
25
-
26
- echo " >> Installing requests"
27
- pip3 install requests
34
+ popd
28
35
36
+ rm -rf " slixmpp" * .tar.gz*
29
37
echo " >> Installed all the requirements"
You can’t perform that action at this time.
0 commit comments