From c4a53bd57538eafe905a1c302c66435e1e8524fc Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Wed, 6 Nov 2024 10:26:31 +0100 Subject: [PATCH] fix package management --- build.sudo | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/build.sudo b/build.sudo index ba1ab28..097dced 100755 --- a/build.sudo +++ b/build.sudo @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x if [ -e /etc/os-release ]; then . /etc/os-release @@ -8,7 +8,7 @@ ID=${ID:-unset} VERSION_ID=${VERSION_ID:-unset} declare -a PKGS -PKGS_APT=( +PKGS=( autoconf autopoint cargo @@ -27,19 +27,20 @@ PKGS_APT=( yasm ) -declare -a PKGS_APT_linuxmint -PKGS_APT_linuxmint=( +if [[ ${ID} = linuxmint ]]; then +PKGS+=( libmysqlclient-dev ) -declare -a PKGS_APT_debian -PKGS_APT_debian+=( +elif [[ ${ID} = debian ]]; then +PKGS+=( default-libmysqlclient-dev gettext libmariadb-dev poppler-utils ) +fi -for p in "${PKGS_APT[@]}" "${PKGS_APT_${ID}[@]}"; do +for p in "${PKGS[@]}" ; do apt --yes install "$p" done