Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-25 20:31:53 +0200
committerErich Eckner <git@eckner.net>2018-03-25 20:31:53 +0200
commit4b0891f2f730b4eb7f836634a4445bac8ea8253c (patch)
tree9f98ba45b22345f076f82891f6a8a51c9c3a80ae
parentb9a0fa08268834680eb134ed2122ac3369487c47 (diff)
lib/common-functions: remove upstream's sub_pkgrel from lib32-* packages
-rwxr-xr-xlib/common-functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common-functions b/lib/common-functions
index ce33a4f..d2de0c4 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -561,6 +561,12 @@ mangle_pkgbuild() {
sub_pkgrel=".${sub_pkgrel}"
fi
+ if grep -q '^\s*pkgname=["'"'"']\?lib32-' "${PKGBUILD}"; then
+ sed -i '
+ s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9]\+\)\.[0-9]*['"'"'"]\?\s*\(#.*\)\?$/\1"\2"/
+ ' "${PKGBUILD}"
+ fi
+
sed -i '
/^arch=[^#]*any/!{
/^arch=(/s/(/(i686 /