@@ -16,21 +16,27 @@ PACKAGES=""
16
16
sudo apt install software-properties-common -y
17
17
sudo apt update
18
18
19
+ LSB_RELEASE=" $( lsb_release -d | cut -d ' :' -f 2 | sed -e ' s/^[[:space:]]*//' ) "
20
+
21
+ if [[ ${LSB_RELEASE} =~ " Ubuntu 20" || ${LSB_RELEASE} =~ " Ubuntu 21" || ${LSB_RELEASE} =~ " Ubuntu 22" || ${LSB_RELEASE} =~ ' Pop!_OS 2' ]]; then
19
22
# Install lsb-core packages
20
23
sudo apt install lsb-core -y
21
-
22
- LSB_RELEASE=" $( lsb_release -d | cut -d ' :' -f 2 | sed -e ' s/^[[:space:]]*//' ) "
24
+ fi
23
25
24
26
if [[ ${LSB_RELEASE} =~ " Mint 18" || ${LSB_RELEASE} =~ " Ubuntu 16" ]]; then
25
27
PACKAGES=" ${UBUNTU_16_PACKAGES} "
26
- elif [[ ${LSB_RELEASE} =~ " Ubuntu 20" || ${LSB_RELEASE} =~ " Ubuntu 21" || ${LSB_RELEASE} =~ " Ubuntu 22" || ${LSB_RELEASE} =~ ' Pop!_OS 2' ]]; then
28
+ elif [[ ${LSB_RELEASE} =~ " Ubuntu 20" || ${LSB_RELEASE} =~ " Ubuntu 21" || ${LSB_RELEASE} =~ " Ubuntu 22" || ${LSB_RELEASE} =~ " Ubuntu 23 " || ${LSB_RELEASE} =~ ' Pop!_OS 2' ]]; then
27
29
PACKAGES=" ${UBUNTU_20_PACKAGES} "
28
30
elif [[ ${LSB_RELEASE} =~ " Debian GNU/Linux 10" ]]; then
29
31
PACKAGES=" ${DEBIAN_10_PACKAGES} "
30
32
elif [[ ${LSB_RELEASE} =~ " Debian GNU/Linux 11" ]]; then
31
33
PACKAGES=" ${DEBIAN_11_PACKAGES} "
32
34
fi
33
35
36
+ if [[ ${LSB_RELEASE} =~ " Ubuntu 20" || ${LSB_RELEASE} =~ " Ubuntu 21" || ${LSB_RELEASE} =~ " Ubuntu 22" || ${LSB_RELEASE} =~ ' Pop!_OS 2' ]]; then
37
+ sudo apt install python2.7 python-all-dev -y
38
+ fi
39
+
34
40
sudo DEBIAN_FRONTEND=noninteractive \
35
41
apt install \
36
42
adb autoconf automake axel bc bison build-essential \
@@ -40,7 +46,7 @@ sudo DEBIAN_FRONTEND=noninteractive \
40
46
libexpat1-dev libgmp-dev ' ^liblz4-.*' ' ^liblzma.*' libmpc-dev libmpfr-dev libncurses5-dev \
41
47
libsdl1.2-dev libssl-dev libtool libxml2 libxml2-utils ' ^lzma.*' lzop \
42
48
maven ncftp ncurses-dev patch patchelf pkg-config pngcrush \
43
- pngquant python2.7 python-all-dev re2c schedtool squashfs-tools subversion \
49
+ pngquant re2c schedtool squashfs-tools subversion \
44
50
texinfo unzip w3m xsltproc zip zlib1g-dev lzip \
45
51
libxml-simple-perl libswitch-perl apt-utils \
46
52
${PACKAGES} -y
0 commit comments