new package method for deb-based OSs

This commit is contained in:
paukstelis
2022-05-14 19:53:39 -04:00
parent 08fec9a71a
commit e8c8901a44

View File

@@ -458,6 +458,30 @@ usb_testing() {
main_menu main_menu
} }
#https://askubuntu.com/questions/39497
deb_packages() {
apt-cache --generate pkgnames \
| grep --line-regexp --fixed-strings \
-e make \
-e v4l-utils \
-e python-is-python3 \
-e python3-venv \
-e python3.9-venv \
-e python3.10-venv \
-e virtualenv \
-e python3-dev \
-e build-essential \
-e python3-setuptools \
-e libyaml-dev \
-e python3-pip \
-e cmake \
-e libjpeg8-dev \
-e libjpeg62-turbo-dev \
-e gcc \
-e g++ \
| xargs apt-get install -y
}
prepare () { prepare () {
echo 'Beginning system preparation' | log echo 'Beginning system preparation' | log
@@ -551,20 +575,24 @@ prepare () {
if [ $INSTALL -eq 2 ]; then if [ $INSTALL -eq 2 ]; then
apt-get update > /dev/null apt-get update > /dev/null
apt-get -y install make v4l-utils virtualenv python-is-python3 cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip python3-venv #apt-get -y install make v4l-utils virtualenv python-is-python3 cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip python3-venv
deb_packages
fi fi
if [ $INSTALL -eq 3 ]; then if [ $INSTALL -eq 3 ]; then
apt-get update > /dev/null apt-get update > /dev/null
apt-get -y install make v4l-utils python3.9-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip #apt-get -y install make v4l-utils python3.9-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip
deb_packages
fi fi
if [ $INSTALL -eq 4 ]; then if [ $INSTALL -eq 4 ]; then
apt-get update > /dev/null apt-get update > /dev/null
apt-get -y install make v4l-utils python3.10-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip #apt-get -y install make v4l-utils python3.10-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip
deb_packages
fi fi
#Mint requires python3.8-venv? #Mint requires python3.8-venv?
if [ $INSTALL -eq 5 ]; then if [ $INSTALL -eq 5 ]; then
apt-get update > /dev/null apt-get update > /dev/null
apt-get -y install make v4l-utils python3.8-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip #apt-get -y install make v4l-utils python3.8-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip
deb_packages
fi fi
#Fedora35 #Fedora35
if [ $INSTALL -eq 6 ]; then if [ $INSTALL -eq 6 ]; then
@@ -573,7 +601,8 @@ prepare () {
#Raspberry Pi OS Buster #Raspberry Pi OS Buster
if [ $INSTALL -eq 7 ]; then if [ $INSTALL -eq 7 ]; then
apt-get update > /dev/null apt-get update > /dev/null
apt-get -y install make v4l-utils virtualenv python-is-python3 cmake libjpeg62-turbo-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip python3-venv #apt-get -y install make v4l-utils virtualenv python-is-python3 cmake libjpeg62-turbo-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip python3-venv
deb_packages
fi fi