]> git.seodisparate.com - AnotherAURHelper/commitdiff
Update README.md about makechrootpkg
authorStephen Seo <seo.disparate@gmail.com>
Thu, 2 Jun 2022 06:17:50 +0000 (15:17 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 2 Jun 2022 06:17:50 +0000 (15:17 +0900)
README.md
makechrootpkg_noskipinteg.hook [new file with mode: 0644]

index a1861a1a97b64b17bf9e085a748f1e860bcf5b2f..10028704c0dce1a613bb92cd22b1f19563376efc 100644 (file)
--- 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 (file)
index 0000000..90902da
--- /dev/null
@@ -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