Skip to content

fix package management #64

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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