2019-05-28 22:54:07 +04:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2020-02-10 14:35:31 +04:00
|
|
|
set -x
|
2019-10-24 17:04:16 +04:00
|
|
|
. /etc/os-release
|
2019-05-28 00:00:09 +04:00
|
|
|
|
2019-10-24 17:04:16 +04:00
|
|
|
if [ $ID = arch ]
|
|
|
|
then
|
|
|
|
pacman -Sy
|
|
|
|
sudo pacman -S --noconfirm \
|
2020-02-10 22:42:35 +04:00
|
|
|
python \
|
2019-10-24 17:04:16 +04:00
|
|
|
libevdev \
|
|
|
|
perl \
|
|
|
|
pkg-config \
|
|
|
|
gmp \
|
|
|
|
hidapi \
|
|
|
|
m4 \
|
|
|
|
libcap \
|
|
|
|
bubblewrap \
|
2019-12-17 00:32:10 +04:00
|
|
|
rsync \
|
|
|
|
git
|
2019-10-24 17:04:16 +04:00
|
|
|
|
|
|
|
else
|
|
|
|
apt-get update -qq
|
|
|
|
apt-get -y -qq install \
|
2020-02-10 22:42:35 +04:00
|
|
|
python3 \
|
2019-10-24 17:04:16 +04:00
|
|
|
libev-dev \
|
|
|
|
perl \
|
|
|
|
pkg-config \
|
|
|
|
libgmp-dev \
|
|
|
|
libhidapi-dev \
|
|
|
|
m4 \
|
|
|
|
libcap-dev \
|
|
|
|
bubblewrap \
|
2019-12-17 00:32:10 +04:00
|
|
|
rsync \
|
|
|
|
git
|
2019-10-24 17:04:16 +04:00
|
|
|
fi
|