diff options
author | Erich Eckner <git@eckner.net> | 2019-01-04 14:37:19 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-04 14:37:19 +0100 |
commit | 8eb5d7fae7eca4780348ce6c43ccac4ef22a1e81 (patch) | |
tree | d8586a65046821da788869cfdb379d7f364c9b08 /archPackagesUpdate | |
parent | 71a6bc63f4d464c64820a9c5994589cb83cd0218 (diff) | |
download | archlinuxewe.git.save-8eb5d7fae7eca4780348ce6c43ccac4ef22a1e81.tar.xz |
adding of PKGBUILD-patches separated into distinct file
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index b8383043..0c7e5c5a 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -545,18 +545,39 @@ if ${aufRechenknecht}; then cd "${tmpDir}/${paket}" rm -rf --one-file-system src pkg - # report installed packages at end of package() function - if the build process succeeded, - # these packages should work - echo ' - if [ "$(uname -m)" = "i686" ]; then - eval "$( - declare -f package | \ - sed '"'"' - $ i sudo report-installed-packages archlinux-reports@eckner.net buildmaster@archlinux32.org - '"'"' - )" - fi - ' >> PKGBUILD + # add PKGBUILD-patches to the PKGBUILD + { + printf '%s\n' \ + 'eval "$(' \ + ' declare -f package | \' \ + ' sed '"'"'$d'"'" + for patch in "${tmp_dir}/"*".PKGBUILDpatch"; do + printf ' cat "${srcdir}/%s"\n' \ + "${patch##*/}" + cp "${patch}" . + done + printf '%s\n' \ + ')"' \ + 'source+=(' + for patch in "${tmp_dir}/"*".PKGBUILDpatch"; do + printf '"%s"\n' \ + "${patch##*/}" + done + printf ')\n' + sed ' + s/^\s*\([^=[:space:]]\+sums\)=.*$/\1/ + t + d + ' PKGBUILD \ + | while read -r sum_type; do + printf '%s+=(' \ + "${sum_type}" + "${sum_type%s}" "${tmp_dir}/"*".PKGBUILDpatch" \ + | awk '{print $1}' + printf ')\n' + done + } | \ + sponge -a PKGBUILD if [ "${arch}" = 'i686' ]; then # 32-bit is built in chroot /opt/arch32 |