@@ -126,14 +126,19 @@ def _clone_cmake(self):
126
126
except Exception as e :
127
127
print ("cmake error: {}" .format (e ))
128
128
129
- print ("CMake version is less than 3.20, start installation" )
130
- self ._cmd ("wget -t 10 {} -P {}" .format ("https://cmake.org/files/v3.22/cmake-3.22.0-linux-x86_64.tar.gz" ,self ._dowload_path ))
129
+ cmake_name = "cmake-3.22.0-linux-x86_64"
130
+ if "x86_64" == self ._machine :
131
+ pass
132
+ else :
133
+ cmake_name = "cmake-3.22.0-linux-aarch64"
134
+ print ("CMake version is less than 3.20, start installation ({})" .format (cmake_name ))
135
+ self ._cmd ("wget -t 10 {} -P {}" .format ("https://cmake.org/files/v3.22/{}.tar.gz" .format (cmake_name ), self ._dowload_path ))
131
136
os .chdir (self ._dowload_path )
132
- self ._cmd ("tar -zxvf cmake-3.22.0-linux-x86_64. tar.gz" )
133
- self ._cmd ("cp -r cmake-3.22.0-linux-x86_64 /bin/* /usr/local/bin" )
134
- self ._cmd ("cp -r cmake-3.22.0-linux-x86_64 /doc/* /usr/local/doc" )
135
- self ._cmd ("cp -r cmake-3.22.0-linux-x86_64 /share/* /usr/local/share" )
136
- self ._cmd ("rm -rf cmake-3.22.0-linux-x86_64*" )
137
+ self ._cmd ("tar -zxvf {}. tar.gz" . format ( cmake_name ) )
138
+ self ._cmd ("cp -r {} /bin/* /usr/local/bin" . format ( cmake_name ) )
139
+ self ._cmd ("cp -r {} /doc/* /usr/local/doc" . format ( cmake_name ) )
140
+ self ._cmd ("cp -r {} /share/* /usr/local/share" . format ( cmake_name ) )
141
+ self ._cmd ("rm -rf {}*" . format ( cmake_name ) )
137
142
self ._cmd ("sudo ldconfig" )
138
143
self ._cmd ("cmake --version" )
139
144
os .chdir (self ._current_path )
@@ -198,6 +203,7 @@ def _clone_proj(self):
198
203
"--depth=1"
199
204
)
200
205
os .chdir (os .path .join (self ._dowload_path , "PROJ" ))
206
+ self ._cmd ("patch -p1 < {}" .format (os .path .join (self ._current_path ,"scripts/PROJ-7.1.0.patch" )))
201
207
self ._cmd ("mkdir -p build" )
202
208
os .chdir ("build" )
203
209
self ._cmd (
0 commit comments