From d76445df26ba6d122d08ef025776675d004c9d5b Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 2 Jun 2022 15:17:50 +0900 Subject: [PATCH] Update README.md about makechrootpkg --- README.md | 8 ++++++++ makechrootpkg_noskipinteg.hook | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 makechrootpkg_noskipinteg.hook diff --git a/README.md b/README.md index a1861a1..1002870 100644 --- a/README.md +++ b/README.md @@ -139,3 +139,11 @@ It may be helpful to periodically clear out the logs directory in between invocations of the AUR Helper script. It is recommended to use the script with a prepared config. + +# Other Notes + +By default, `makechrootpkg` does not verify integrity of files in the PKGBUILD. +Use the `makechrootpkg_noskipinteg.hook` to modify the `makechrootpkg` script to +not skip integrity checks. + +The hook must be placed in `/etc/pacman.d/hooks/`. diff --git a/makechrootpkg_noskipinteg.hook b/makechrootpkg_noskipinteg.hook new file mode 100644 index 0000000..90902da --- /dev/null +++ b/makechrootpkg_noskipinteg.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = devtools + +[Action] +Description = Force makechrootpkg to not --skipinteg +When = PostTransaction +Exec = /usr/bin/sed -i '/^default_makepkg_args=.*$/s/ --skipinteg//' /usr/bin/makechrootpkg +Depends = devtools