Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-xlib/common-functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/common-functions b/lib/common-functions
index 2cf4e22..4e9570a 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -549,6 +549,7 @@ recursively_umount_and_rm() {
# mangle_pkgbuild $PKGBUILD [$sub_pkgrel]
# mangle $arch in PKBUILDs to contain i486, i586, i686
# append $sub_pkgrel to the pkgrel
+# remove "lib32-" from {make,check,opt,}depends
# TODO: actually include the other architectures
@@ -572,6 +573,16 @@ mangle_pkgbuild() {
}
s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9.]\+\)['"'"'"]\?\s*\(#.*\)\?$/\1"\2'"${sub_pkgrel}"'"/
' "${PKGBUILD}"
+
+ sed -i '
+ /^\s*\(\(make\|check\|opt\|\)depends\)=(/ {
+ :a
+ s,^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*),\0\n\1=(${\1[\@]/lib32-/})\n,
+ t
+ $!N
+ ba
+ }
+ ' "${PKGBUILD}"
}
# find_package_repository_to_package $package $git_repository $git_commit