summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-04 11:43:33 +0200
committerErich Eckner <git@eckner.net>2018-05-04 11:43:33 +0200
commit191f125d5352072a983d406c5f5be55acb3c7105 (patch)
tree430fcaab21c3a23b771bc78a8d63c189f097a5d4 /lib/common-functions
parent3c7219daab4bc70e5a743972561d28effea9429a (diff)
downloadbuilder-191f125d5352072a983d406c5f5be55acb3c7105.tar.xz
lib/common-functions: mangle_pkgbuild: already include future architectures (they will still be ignored, currently)
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 4e9570a..b6d40f9 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -551,8 +551,6 @@ recursively_umount_and_rm() {
# append $sub_pkgrel to the pkgrel
# remove "lib32-" from {make,check,opt,}depends
-# TODO: actually include the other architectures
-
mangle_pkgbuild() {
local PKGBUILD="$1"
local sub_pkgrel="$2"
@@ -569,7 +567,7 @@ mangle_pkgbuild() {
sed -i '
/^arch=[^#]*any/!{
- /^arch=(/s/(/(i686 /
+ /^arch=(/s/(/(i686 i486 pentium3 /
}
s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9.]\+\)['"'"'"]\?\s*\(#.*\)\?$/\1"\2'"${sub_pkgrel}"'"/
' "${PKGBUILD}"