diff options
author | Erich Eckner <git@eckner.net> | 2018-03-25 20:31:53 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-25 20:31:53 +0200 |
commit | 4b0891f2f730b4eb7f836634a4445bac8ea8253c (patch) | |
tree | 9f98ba45b22345f076f82891f6a8a51c9c3a80ae /lib | |
parent | b9a0fa08268834680eb134ed2122ac3369487c47 (diff) | |
download | builder-4b0891f2f730b4eb7f836634a4445bac8ea8253c.tar.xz |
lib/common-functions: remove upstream's sub_pkgrel from lib32-* packages
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/common-functions | 6 |
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 / |