summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-15 09:46:23 +0200
committerErich Eckner <git@eckner.net>2018-10-15 09:46:23 +0200
commiteae23dc582b2959c282c50ce5899298fe15c0179 (patch)
tree1014f100a2d39c3c75ddbd7c8b4735e0d9b3353e /package.inc.sh
parent917f13ad12eab093b754fdbc63703321d598baff (diff)
downloadasp32-0.1.tar.xz
package.inc.sh: mangle the arch=() entry of the PKGBUILD0.1
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh6
1 files changed, 6 insertions, 0 deletions
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() {