summaryrefslogtreecommitdiff
path: root/xibuild/build_all.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-02 23:53:42 +0000
committerdavidovski <david@davidovski.xyz>2022-03-02 23:53:42 +0000
commit3d3511a9ce2eba02b4156618922b2ded02272307 (patch)
tree232b879d727df0eecf812592de284007281b3d97 /xibuild/build_all.sh
parentfaf7c837b27aebd7c5529f71e22627a07a96db37 (diff)
made a few optimisations on install
Diffstat (limited to 'xibuild/build_all.sh')
-rwxr-xr-xxibuild/build_all.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/xibuild/build_all.sh b/xibuild/build_all.sh
index f4e30eb..a84d90f 100755
--- a/xibuild/build_all.sh
+++ b/xibuild/build_all.sh
@@ -6,6 +6,9 @@ PASS="\033[0;32m"
NEUTRAL="\033[0;33m"
RESET="\033[0m"
+XIPKG_INSTALL=/usr/lib/xipkg/install.sh
+[ -f $XIPKG_INSTALL ] && . $XIPKG_INSTALL
+
# scan and run all postinstall scripts
#
run_postinstall () {
@@ -26,15 +29,6 @@ run_postinstall () {
fi
}
-# install a single package if it is present
-#
-# arg: the exported .xipkg file
-#
-install_package () {
- printf "${INFO}${TABCHAR}install "
- xi -nyulq -r ${XIB_CHROOT} install $1 && printf "${PASS}${CHECKMARK}\n"
-}
-
# build a package by its name
#
build_package () {
@@ -51,7 +45,11 @@ build_package () {
# install the package it exists
local exported_pkg=$(find $XIB_EXPORT -wholename "*/$name.xipkg" | head -1 | xargs realpath)
if $install && [ -f $exported_pkg ] ; then
- install_package $exported_pkg
+ printf "${INFO}${TABCHAR}install "
+ INSTALLED_DIR="$XIB_CHROOT/var/lib/xipkg/installed/"
+ SYSROOT=$XIB_CHROOT
+ VERBOSE=false
+ install_package $exported_pkg $name && printf "${PASS}${CHECKMARK}\n" || printf "${NEUTRAL}${CHECKMARK}\n"
fi
return 0