24 lines
653 B
Bash
Executable File
24 lines
653 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2024 Joshua Rich <joshua.rich@gmail.com>
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
set -e
|
|
|
|
DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update
|
|
apt-get -y install desktop-file-utils gcc
|
|
for arch in "$@"; do
|
|
if [ "$arch" == "arm" ]; then
|
|
arch="armhf"
|
|
fi
|
|
apt-get -y install \
|
|
libgl1-mesa-dev:${arch} xserver-xorg-dev:${arch} \
|
|
libxcursor-dev:${arch} libxrandr-dev:${arch} \
|
|
libxinerama-dev:${arch} libxi-dev:${arch} \
|
|
libgl1-mesa-dev:${arch} libxxf86vm-dev:${arch}
|
|
done
|