1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(build): enable backports repository for Debian Jessie

Enable jessie-backports repository for libsqlcipher-dev package
in Debian Jessie by creating qtox-backports.list file if
repository is not enabled yet.

Closes #3679
This commit is contained in:
Vincas Dargis 2016-09-04 14:45:44 +03:00
parent 76c4cf7d39
commit fb5639b292

View File

@ -28,6 +28,16 @@ apt_install() {
qt5-qmake
qttools5-dev-tools
)
local codename=$(lsb_release -c -s)
# Enable Debian Jessie backports repository for libsqlcipher-dev (if not yet enabled)
if [ ${codename} == jessie ] && [ $(apt-cache policy | fgrep jessie-backports -c) == 0 ]
then
echo "deb http://httpredir.debian.org/debian jessie-backports main" | sudo tee /etc/apt/sources.list.d/qtox-backports.list
sudo apt-get update
fi
sudo apt-get install "${apt_packages[@]}"
}