summaryrefslogtreecommitdiff
path: root/xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-16 14:33:27 +0100
committerdavidovski <david@davidovski.xyz>2022-04-16 14:33:27 +0100
commitf3eb890b34d7e50727db601e357049a8848fc5ad (patch)
tree274ded9678d6acf38b56d01329ca51445731eb28 /xibuild
parent07faa77244858366434fb93b1e5419609fb3d81b (diff)
updated packages in bootstrap
Diffstat (limited to 'xibuild')
-rwxr-xr-xxibuild/build_package.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh
index f061ad9..e09aecd 100755
--- a/xibuild/build_package.sh
+++ b/xibuild/build_package.sh
@@ -195,17 +195,31 @@ package_dest () {
cp "$BUILDFILE" "$XIB_EXPORT/repo/$REPO/"
}
+# strip debug symbols
+#
+strip_dest () {
+ local pkg_dest="$XIB_CHROOT/export"
+ for file in \
+ $(find $pkg_dest/ -type f -name \*.so* ! -name \*dbg) \
+ $(find $pkg_dest/ -type f -name \*.a) \
+ $(find $pkg_dest/ -type f -executable ); do
+ strip --strip-unneeded $file
+ done
+
+ find $pkg_dest -name \*.la -delete
+}
+
# build the package
#
build_pkg () {
local log_file="$XIB_EXPORT/repo/$REPO/$NAME.log"
printf "${BLUE}${TABCHAR}prepare "
- prepare_build_env || return 1
+ prepare_build_env || return 1
printf "${GREEN}${CHECKMARK}\n"
printf "${BLUE}${TABCHAR}fetch "
- fetch_source || return 1
+ fetch_source || return 1
printf "${GREEN}${CHECKMARK}${RESET}${INFOCHAR}$(du -sh "$XIB_CHROOT/build/source" | awk '{ print $1 }')\n"
printf "${BLUE}${TABCHAR}generate "
@@ -216,6 +230,10 @@ build_pkg () {
xichroot $XIB_CHROOT /build/build.sh > $log_file 2>&1 || return 1
printf "${GREEN}${CHECKMARK}\n"
+ printf "${BLUE}${TABCHAR}clean "
+ strip_dest > $log_file 2>&1 || return 1
+ printf "${GREEN}${CHECKMARK}\n"
+
printf "${BLUE}${TABCHAR}package "
package_dest || return 1
printf "${GREEN}${CHECKMARK}${RESET}${INFOCHAR}$(du -sh "$XIB_EXPORT/repo/$REPO/$NAME.xipkg" | awk '{ print $1 }')!\n"