From f3eb890b34d7e50727db601e357049a8848fc5ad Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 16 Apr 2022 14:33:27 +0100 Subject: updated packages in bootstrap --- xibuild/build_package.sh | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'xibuild') 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" -- cgit v1.2.1