Fix/remove missing package (#7897)
* [fix] yay instead pacman install bootloadhid * [fix] add needed option * [mod] output red color * [fix] overwrite avr-gcc package * [mod] disable install bootloadhid from aur and check already installed * Apply suggestions from code review Co-Authored-By: Joel Challis <git@zvecr.com> * Update util/linux_install.sh Co-Authored-By: Joel Challis <git@zvecr.com> Co-authored-by: Joel Challis <git@zvecr.com>master
parent
1b7a003d84
commit
a539bd63fe
|
@ -12,12 +12,14 @@ util_dir=$(dirname "$0")
|
||||||
|
|
||||||
# For those distros that do not package bootloadHID
|
# For those distros that do not package bootloadHID
|
||||||
install_bootloadhid() {
|
install_bootloadhid() {
|
||||||
wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
|
if ! command -v bootloadHID >/dev/null; then
|
||||||
cd /tmp/bootloadHID.2012-12-08/commandline/
|
wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
|
||||||
if make; then
|
cd /tmp/bootloadHID.2012-12-08/commandline/
|
||||||
sudo cp bootloadHID /usr/local/bin
|
if make; then
|
||||||
|
sudo cp bootloadHID /usr/local/bin
|
||||||
|
fi
|
||||||
|
cd -
|
||||||
fi
|
fi
|
||||||
cd -
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if grep ID /etc/os-release | grep -qE "fedora"; then
|
if grep ID /etc/os-release | grep -qE "fedora"; then
|
||||||
|
@ -73,7 +75,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
|
||||||
zip
|
zip
|
||||||
|
|
||||||
elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
|
elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
|
||||||
sudo pacman -U https://archive.archlinux.org/packages/a/avr-gcc/avr-gcc-8.3.0-1-x86_64.pkg.tar.xz
|
sudo pacman --needed -U https://archive.archlinux.org/packages/a/avr-gcc/avr-gcc-8.3.0-1-x86_64.pkg.tar.xz
|
||||||
sudo pacman -S --needed \
|
sudo pacman -S --needed \
|
||||||
arm-none-eabi-binutils \
|
arm-none-eabi-binutils \
|
||||||
arm-none-eabi-gcc \
|
arm-none-eabi-gcc \
|
||||||
|
@ -81,9 +83,7 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
|
||||||
avrdude \
|
avrdude \
|
||||||
avr-binutils \
|
avr-binutils \
|
||||||
avr-libc \
|
avr-libc \
|
||||||
avr-gcc \
|
|
||||||
base-devel \
|
base-devel \
|
||||||
bootloadhid \
|
|
||||||
clang \
|
clang \
|
||||||
dfu-programmer \
|
dfu-programmer \
|
||||||
dfu-util \
|
dfu-util \
|
||||||
|
|
Loading…
Reference in New Issue