2015-03-25 22:16:22 -07:00
|
|
|
#!/usr/bin/env bash
|
2014-09-10 17:36:34 -05:00
|
|
|
|
|
|
|
if which apt-get; then
|
2015-05-17 00:33:43 +02:00
|
|
|
sudo apt-get install \
|
|
|
|
git build-essential qt5-qmake qt5-default qttools5-dev-tools \
|
|
|
|
libqt5opengl5-dev libqt5svg5-dev libopenal-dev libopencv-dev \
|
2015-11-21 13:20:20 +01:00
|
|
|
libavdevice-dev \
|
2015-05-17 00:33:43 +02:00
|
|
|
libxss-dev qrencode libqrencode-dev libtool autotools-dev \
|
2015-06-27 13:38:28 -04:00
|
|
|
automake checkinstall check libopus-dev libvpx-dev libsodium-dev \
|
2016-03-26 12:17:36 +01:00
|
|
|
libglib2.0-dev libgdk-pixbuf2.0-dev libgtk2.0-dev \
|
|
|
|
libsqlcipher-dev
|
2014-09-10 17:36:34 -05:00
|
|
|
elif which pacman; then
|
2015-05-17 00:33:43 +02: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 \
|
2015-07-22 19:42:12 +02:00
|
|
|
openal-soft-devel libXScrnSaver-devel qrencode-devel \
|
2015-07-23 23:01:21 +02:00
|
|
|
opus-devel libvpx-devel qt5-qttools-devel glib2-devel \
|
2015-11-07 09:34:33 +01:00
|
|
|
gdk-pixbuf2-devel gtk2-devel libsodium-devel
|
2015-09-02 20:40:16 +01:00
|
|
|
elif which zypper; then
|
|
|
|
sudo zypper in \
|
2016-03-27 17:12:49 +02:00
|
|
|
git patterns-openSUSE-devel_basis libqt5-qtbase-common-devel \
|
|
|
|
libqt5-qtsvg-devel libqt5-linguist libQt5Network-devel \
|
|
|
|
libQt5OpenGL-devel libQt5Concurrent-devel libQt5Xml-devel \
|
|
|
|
libQt5Sql-devel openal-soft-devel qrencode-devel \
|
|
|
|
libXScrnSaver-devel libQt5Sql5-sqlite libffmpeg-devel \
|
|
|
|
libsodium-devel libvpx-devel libopus-devel patterns-openSUSE-devel_basis \
|
2016-03-26 19:33:38 +01:00
|
|
|
sqlcipher-devel
|
2014-09-10 17:36:34 -05:00
|
|
|
else
|
|
|
|
echo "Unknown package manager, attempting to compile anyways"
|
|
|
|
fi
|
|
|
|
|
|
|
|
./bootstrap.sh
|
2015-09-02 20:40:16 +01:00
|
|
|
if [ -e /etc/redhat-release -o -e /etc/zypp ]; then
|
2015-07-23 23:01:21 +02:00
|
|
|
qmake-qt5
|
2015-07-22 19:42:12 +02:00
|
|
|
else
|
2015-07-23 23:01:21 +02:00
|
|
|
qmake
|
2015-07-22 19:42:12 +02:00
|
|
|
fi
|
2014-09-10 17:36:34 -05:00
|
|
|
make
|