Skip to content

Commit

Permalink
fix Liquidsoap package installation on Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kirchgessner committed Feb 2, 2023
1 parent 63bad2c commit f0a8e46
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions installers/liquidsoap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

################### Liquidsoap installer script ########################
#
# Copyright © 2022 Martin Kirchgessner <martin.kirch@gmail.com>
# Copyright © 2023 Martin Kirchgessner <martin.kirch@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -46,13 +46,19 @@ cd
install_liquidsoap() {
# just to be sure
sudo apt-get update
sudo -v
sudo apt install -y curl wget ffmpeg
sudo -v

local ARCH="$(dpkg --print-architecture)" # amd64, etc.
source /etc/os-release # comes with a few variables : we'll use ID and VERSION_CODENAME

if [[ "$ID" == "debian" ]]
then
# the package depends on `libfdk-aac2`, which is in Debian's non-free repo
sudo apt install -y software-properties-common
sudo apt-add-repository non-free
sudo apt-get update
fi

# workaround GitHub's redirection and javascripts
local LATEST=$(curl -w '%{redirect_url}' https://github.com/savonet/liquidsoap/releases/latest)
local ASSETS_URL=${LATEST/tag/expanded_assets}
Expand All @@ -62,7 +68,6 @@ install_liquidsoap() {
printf "\n\n************ downloaded $PACKAGE **************\n"

sudo dpkg --force-depends -i ./$PACKAGE
sudo -v
# add -o Debug::pkgProblemResolver=true if something goes wrong below. APT can decide to *remove* liquidsoap if a dependency is not available.
sudo apt -y install -f

Expand Down
13 changes: 9 additions & 4 deletions installers/showergel_quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

################ Liquidsoap & Showergel installer script #####################
#
# Copyright © 2022 Martin Kirchgessner <martin.kirch@gmail.com>
# Copyright © 2023 Martin Kirchgessner <martin.kirch@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -47,13 +47,19 @@ cd
install_liquidsoap() {
# just to be sure
sudo apt-get update
sudo -v
sudo apt install -y curl wget ffmpeg
sudo -v

local ARCH="$(dpkg --print-architecture)" # amd64, etc.
source /etc/os-release # comes with a few variables : we'll use ID and VERSION_CODENAME

if [[ "$ID" == "debian" ]]
then
# the package depends on `libfdk-aac2`, which is in Debian's non-free repo
sudo apt install -y software-properties-common
sudo apt-add-repository non-free
sudo apt-get update
fi

# workaround GitHub's redirection and javascripts
local LATEST=$(curl -w '%{redirect_url}' https://github.com/savonet/liquidsoap/releases/latest)
local ASSETS_URL=${LATEST/tag/expanded_assets}
Expand All @@ -63,7 +69,6 @@ install_liquidsoap() {
printf "\n\n************ downloaded $PACKAGE **************\n"

sudo dpkg --force-depends -i ./$PACKAGE
sudo -v
# add -o Debug::pkgProblemResolver=true if something goes wrong below. APT can decide to *remove* liquidsoap if a dependency is not available.
sudo apt -y install -f

Expand Down

0 comments on commit f0a8e46

Please sign in to comment.