summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gensync.sh.in3
-rw-r--r--scripts/makepkg.sh.in4
-rw-r--r--scripts/updatesync.sh.in3
3 files changed, 10 insertions, 0 deletions
diff --git a/scripts/gensync.sh.in b/scripts/gensync.sh.in
index d98915f4..8109fe22 100644
--- a/scripts/gensync.sh.in
+++ b/scripts/gensync.sh.in
@@ -129,6 +129,9 @@ for file in $(find "$rootdir"/* -name "$BUILDSCRIPT"); do
unset pkgname pkgver pkgrel options
source $file || die "$(gettext "failed to parse parse %s")" $file
+ if [ "$arch" = 'any' ]; then
+ CARCH='any'
+ fi
if [ "$pkgdir" != "" ]; then
pkgfile="$pkgdir/$pkgname-$pkgver-$pkgrel-$CARCH.$PKGEXT"
else
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 831c1bda..e23484ea 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1300,6 +1300,10 @@ if [ $(echo "$pkgrel" | grep '-') ]; then
exit 1
fi
+if [ "$arch" = 'any' ]; then
+ CARCH='any'
+fi
+
if ! in_array $CARCH ${arch[@]}; then
if [ "$IGNOREARCH" = "0" ]; then
error "$(gettext "%s is not available for the '%s' architecture.")" "$pkgname" "$CARCH"
diff --git a/scripts/updatesync.sh.in b/scripts/updatesync.sh.in
index 7f6636cc..57bd39cb 100644
--- a/scripts/updatesync.sh.in
+++ b/scripts/updatesync.sh.in
@@ -127,6 +127,9 @@ if [ "$action" = "upd" ]; then # INSERT / UPDATE
unset pkgname pkgver pkgrel options
source $option || die "$(gettext "failed to parse %s")" $option
+ if [ "$arch" = 'any' ]; then
+ CARCH='any'
+ fi
pkgfile="$pkgdir/$pkgname-$pkgver-$pkgrel-$CARCH.$PKGEXT"
if [ ! -f "$pkgfile" ]; then