From eae23dc582b2959c282c50ce5899298fe15c0179 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 15 Oct 2018 09:46:23 +0200 Subject: package.inc.sh: mangle the arch=() entry of the PKGBUILD --- package.inc.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.inc.sh b/package.inc.sh index 7a9756d..99f815e 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -153,6 +153,12 @@ package_export() { log_info 'exporting %s:%s' "$pkgname" "$subtree" git archive --format=tar "remotes/$remote/packages/$pkgname" "$subtree/" | tar --transform "s,^$subtree,$pkgname," -xf - "$subtree/" + # borrowed from archlinux32/builder/lib/common-functions' mangle_pkgbuild() + sed -i ' + /^arch=[^#]*any/!{ + /^arch=(/s/(/(i486 i686 pentium3 / + } + ' "$pkgname/PKGBUILD" } package_checkout() { -- cgit v1.2.3-70-g09d2