From 132330ddf613bc6f273e3a5c7fb6b948049bcd31 Mon Sep 17 00:00:00 2001 From: emma Date: Fri, 13 Jan 2023 11:49:40 -0500 Subject: [PATCH] added aur pkgbuild pre-commit hook --- pre-commit/aur-pkgbuild | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pre-commit/aur-pkgbuild diff --git a/pre-commit/aur-pkgbuild b/pre-commit/aur-pkgbuild new file mode 100644 index 0000000..10d3d49 --- /dev/null +++ b/pre-commit/aur-pkgbuild @@ -0,0 +1,10 @@ +#!/bin/sh + +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice and this +# notice are preserved. This file is offered as-is, without any warranty. + +# Hook to generate & add .SRCINFO to AUR PKGBUILD commits. + +makepkg --printsrcinfo > .SRCINFO +git add .SRCINFO