From aaa52da97d33917ddf069d3f0b1dcf9d4ff9392a Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Fri, 11 Feb 2022 17:49:24 +0330 Subject: [PATCH] Ports: Add a pre_install hook --- Ports/.port_include.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 94d17f5e04..8f077a1bbd 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -363,6 +363,10 @@ fetch() { post_fetch } +func_defined pre_install || pre_install() { + : +} + func_defined pre_patch || pre_patch() { : } @@ -520,6 +524,7 @@ do_build() { } do_install() { ensure_build + pre_install echo "Installing $port..." install install_main_launcher