ports: Add pre_install and post_install to install.sh

This commit is contained in:
2025-06-28 20:21:46 +03:00
parent 7314cf708c
commit 505388b9fa

View File

@@ -77,10 +77,22 @@ build() {
done done
} }
pre_install() {
:
}
post_install() {
:
}
install() { install() {
pre_install
for target in "${MAKE_INSTALL_TARGETS[@]}"; do for target in "${MAKE_INSTALL_TARGETS[@]}"; do
make $target "DESTDIR=$BANAN_SYSROOT" || exit 1 make $target "DESTDIR=$BANAN_SYSROOT" || exit 1
done done
post_install
} }
source $1 source $1