Skip to content

Commit a664277

Browse files
committed
Install meson via pip in Termux
1 parent 1fac39f commit a664277

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libr/main/r2pm.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,13 @@ static int r2pm_install_pkg(const char *pkg, bool clean, bool global) {
712712
if (error) {
713713
if (r2pm_check ("apt") && r_file_is_directory ("/system/bin")) {
714714
if (r_cons_yesno ('y', "Install system dependencies (Y/n)")) {
715-
const char *const cmd = "apt install build-essential ninja meson git make patch python wget binutils";
715+
const char cmd[] = "apt install build-essential ninja git make patch python wget binutils";
716716
R_LOG_INFO ("Running %s", cmd);
717717
if (r_sys_cmd (cmd) == 0) {
718-
return r2pm_install_pkg (pkg, clean, global);
718+
const char cmd[] = "pip3 install meson --break-system-packages";
719+
if (r_sys_cmd (cmd) == 0) {
720+
return r2pm_install_pkg (pkg, clean, global);
721+
}
719722
}
720723
}
721724
}

0 commit comments

Comments
 (0)