1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 23:47:11 +01:00
build/util/build_package.sh
David Oberhollenzer 55d13e06fd Make sysroot preparation & packaging overrideable package actions
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-19 08:41:52 +02:00

25 lines
468 B
Bash

build_package() {
found="yes"
for f in $SUBPKG; do
if [ ! -f "$REPODIR/${f}.pkg" ]; then
found="no"
break
fi
done
if [ "x$found" == "xyes" ]; then
return
fi
rm -rf "$SYSROOT" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
mkdir -p "$SYSROOT" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
run_pkg_command "set_scene"
run_pkg_command "download"
run_pkg_command "build"
run_pkg_command "deploy"
run_pkg_command "package"
rm -rf "$SYSROOT" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
}