added aur pkgbuild pre-commit hook

This commit is contained in:
Emma Tebibyte 2023-01-13 11:49:40 -05:00
parent 8f6929758b
commit 132330ddf6

10
pre-commit/aur-pkgbuild Normal file
View File

@ -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