4000th COMMIT: Add a package manager, xbps

Now you don't have to wait painstakingly long for ports to compile!
This commit is contained in:
2026-08-25 23:51:27 +03:00
parent 59077f0f72
commit 1433657697
8 changed files with 153 additions and 13 deletions
+24 -1
View File
@@ -35,7 +35,7 @@ build_target () {
echo "No target provided"
exit 1
fi
run_fakeroot $BANAN_CMAKE --build $BANAN_BUILD_DIR -- -j$(nproc) $1
run_fakeroot $BANAN_CMAKE --build $BANAN_BUILD_DIR -- -j$(nproc) "$1"
}
build_toolchain () {
@@ -138,6 +138,29 @@ case $1 in
rm -rf $BANAN_BUILD_DIR
find $BANAN_ROOT_DIR/ports -name '.compile_hash' -exec rm {} +
;;
xbps-*)
command="$1"
shift
build_target all
build_target install
xbps_args=()
case "$command" in
xbps-install|xbps-remove|xbps-query)
xbps_args+=(--rootdir "$BANAN_SYSROOT")
;;
esac
case "$command" in
xbps-install|xbps-query)
xbps_args+=(--repository "$BANAN_XBPS_REPO")
;;
esac
run_xbps "$command" "${xbps_args[@]}" "$@"
;;
*)
build_target $1
;;