Adding initial hook and PKGBUILD

This commit is contained in:
David Thurstenson 2020-08-26 18:37:19 -05:00
commit b56085f739
2 changed files with 26 additions and 0 deletions

16
PKGBUILD Normal file
View File

@ -0,0 +1,16 @@
# Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=pacdiff-hook
pkgver=0.1
pkgrel=1
pkgdesc="A hook to run pacdiff after any run of pacman"
arch=('any')
url="https://git.thurstylark.com/tl-pacdiff-hook.git/"
license=('GPL')
groups=('tlconfig')
depends=('pacman-contrib' 'vim')
source=("pacdiff.hook")
md5sums=('1c8c59a99410668ebc7ebee5429da89f')
package() {
install -Dm644 pacdiff.hook ${pkgdir}/usr/share/libalpm/hooks/pacdiff.hook
}

10
pacdiff.hook Normal file
View File

@ -0,0 +1,10 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Runs pacdiff utility
When = PostTransaction
Exec = /usr/bin/pacdiff