index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | lib/common-functions | 11 |
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 |