From 322e9ddcf363622ad36ad969b602b5d432239c0f Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sun, 08 Feb 2026 00:08:42 +0000
Subject: [PATCH] Rename final binary not to conflict with existing archbuild
---
main.sh | 35 +++++++++++++++++++++++++++++------
1 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/main.sh b/main.sh
index fd93dd2..9ef66d3 100755
--- a/main.sh
+++ b/main.sh
@@ -70,10 +70,19 @@
"$1" == "ttf-ms-win8" ||
"$1" == "ttf-win7-fonts" ]]; then
makepkg -s --noconfirm $([[ $CLEAN == "Y" ]] && echo "-c") $([[ $SIGN == "Y" ]] && echo "--sign --key $KEY") $([[ "$2" == "-f" ]] && echo -f) --skipchecksums 2>&1
+ elif [[ "$1" == "icu"* ]]; then
+ echo ***1
+ pause
+ LC_ALL=C makepkg -s --noconfirm $([[ $CLEAN == "Y" ]] && echo "-c") $([[ $SIGN == "Y" ]] && echo "--sign --key $KEY") $([[ "$2" == "-f" ]] && echo -f) 2>&1
else
makepkg -s --noconfirm $([[ $CLEAN == "Y" ]] && echo "-c") $([[ $SIGN == "Y" ]] && echo "--sign --key $KEY") $([[ "$2" == "-f" ]] && echo -f) 2>&1
fi
if [[ $? != 0 && $? != 13 ]]; then
+ if [[ -n $(find . -iname "*cmake") && "$2" != "-s" ]]; then
+ find ./src -iname "*cmake*" -type f -delete
+ build_pkg "$1" -s
+ return $?
+ fi
#Register error
echo $1 >> $ERRORFILE
return 1
@@ -101,12 +110,16 @@
#Move package to repodir and add to repo db
#Dont change the database if rebuilt the same package at same release and version
- flag=0
- for i in ${pkgs[@]}; do
- if [[ ! -f $REPODIR/$i ]]; then
- flag=1
- fi
- done
+ if [ -z $2 ]; then
+ flag=0
+ for i in ${pkgs[@]}; do
+ if [[ ! -f $REPODIR/$i ]]; then
+ flag=1
+ fi
+ done
+ else
+ flag=1
+ fi
if [[ $flag == 1 ]]; then
rm -f $REPODIR/*$1*.tar.*
for i in ${pkgs[@]}; do
@@ -338,6 +351,13 @@
return 0
}
+function remake-repo {
+ cd $REPODIR
+ rm -f $REPONAME.db.*
+ pkgs="$(find . -name '*.pkg.*' -not -name '*.sig')"
+ repo-add $([[ "$SIGN" == "Y" ]] && echo "--sign --key $KEY") $REPODIR/$REPONAME.db.tar.$([ -n "$COMPRESSION" ] || echo $COMPRESSION && echo zst) $pkgs
+}
+
function send_email {
# message=(echo "From: $FROM_EMAIL"
# echo "To: $TO_EMAIL"
@@ -383,6 +403,8 @@
remove ${@:2};;
"check")
check;;
+ "remake")
+ remake-repo;;
"test-mail")
send_email
exit $?;;
@@ -395,6 +417,7 @@
echo -e "\033[0;32madd package ...\033[0m - add a package to \$BUILDDIR and repository, also used to rebuild failed packages"
echo -e "\033[0;32mremove -a | package ...\033[0m - remove package from \$BUILDDIR and repository, \"-a\" removes packages added to official repos"
echo -e "\033[0;32mbuild-all [-f]\033[0m - build all packages in \$BUILDDIR, \"-f\" force builds whole repository"
+ echo -e "\033[-;32mremake\033[0m - Recreate repo"
esac
# Error reporting, send email only for build-all as assuming an batch job for that
--
Gitblit v1.10.0