Skip to content

Commit

Permalink
Merge pull request #64 from mariux64/linuxmint-fixes-2.13.4
Browse files Browse the repository at this point in the history
fix package management
  • Loading branch information
wwwutz authored Nov 6, 2024
2 parents fdb4a3e + c4a53bd commit 0d3c109
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build.sudo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x

if [ -e /etc/os-release ]; then
. /etc/os-release
Expand All @@ -8,7 +8,7 @@ ID=${ID:-unset}
VERSION_ID=${VERSION_ID:-unset}

declare -a PKGS
PKGS_APT=(
PKGS=(
autoconf
autopoint
cargo
Expand All @@ -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

0 comments on commit 0d3c109

Please sign in to comment.