2015-03-26 13:16:22 +08:00
|
|
|
#!/usr/bin/env bash
|
2014-09-11 06:36:34 +08:00
|
|
|
|
|
|
|
if which apt-get; then
|
2015-05-17 06:33:43 +08:00
|
|
|
sudo apt-get install \
|
|
|
|
git build-essential qt5-qmake qt5-default qttools5-dev-tools \
|
|
|
|
libqt5opengl5-dev libqt5svg5-dev libopenal-dev libopencv-dev \
|
|
|
|
libxss-dev qrencode libqrencode-dev libtool autotools-dev \
|
|
|
|
automake checkinstall check libopus-dev libvpx-dev libsodium-dev
|
2014-09-11 06:36:34 +08:00
|
|
|
elif which pacman; then
|
2015-05-17 06:33:43 +08:00
|
|
|
sudo pacman -S --needed \
|
|
|
|
git base-devel qt5 opencv openal libxss qrencode opus libvpx \
|
|
|
|
libsodium
|
|
|
|
elif which dnf; then
|
|
|
|
sudo dnf group install \
|
|
|
|
"Development Tools"
|
|
|
|
sudo dnf install \
|
|
|
|
git qt-devel qt-doc qt-creator qt5-qtsvg opencv-devel \
|
|
|
|
openal-soft-devel libXScrnSaver-devel qrencode-devel
|
2014-09-11 06:36:34 +08:00
|
|
|
else
|
|
|
|
echo "Unknown package manager, attempting to compile anyways"
|
|
|
|
fi
|
|
|
|
|
|
|
|
./bootstrap.sh
|
|
|
|
qmake
|
|
|
|
make
|