BuildSystem: Add script to package all ports

This commit is contained in:
2026-08-25 15:32:54 +03:00
parent 8a5557f4ae
commit 645150039a
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
if [[ -z $BANAN_ROOT_DIR ]]; then
export BANAN_ROOT_DIR="$(realpath $(dirname $(realpath "$0"))/..)"
fi
source "$BANAN_ROOT_DIR/script/config.sh"
package_standalone() {
pushd "$BANAN_PORT_DIR/$1" >/dev/null
local version_string="$(../get-version-string.sh)"
if [ ! -f "$BANAN_PORT_DIR/package/repo/${version_string}.xbps" ]; then
local dependency
for dependency in $(source build.sh; echo ${DEPENDENCIES[*]}); do
package_standalone "$dependency"
done
find "$BANAN_SYSROOT/usr/lib" \( -type f -o -type l \) -delete
PACKAGE=1 ./build.sh || echo "$port_name" >> ../failed-shit
fi
popd >/dev/null
}
cd "$BANAN_PORT_DIR"
for build_script in */build.sh; do
port_name="${build_script%/*}"
[[ "$port_name" == 'llvm' ]] && continue
package_standalone "$port_name"
done