diff options
author | Lars Rustand | 2019-08-03 13:38:29 +0200 |
---|---|---|
committer | Lars Rustand | 2019-08-03 13:38:29 +0200 |
commit | 88d2c038761a4040a8d84f447f715079622c802b (patch) | |
tree | a43bef534cb68114e0b0abbe48033393a9104b12 | |
download | aur-88d2c038761a4040a8d84f447f715079622c802b.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | pkgfile.hook | 11 |
3 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..aa8b880a658 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = pacman-pkgfile-hook + pkgdesc = Pacman hook to update the pkgfile database. + pkgver = 1.0.0 + pkgrel = 1 + arch = any + depends = pkgfile + source = pkgfile.hook + md5sums = SKIP + +pkgname = pacman-pkgfile-hook + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..d2ccc0f002a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,14 @@ +# Maintainer: Lars Rustand <rustand dot lars at gmail dot com> +pkgname=pacman-pkgfile-hook +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Pacman hook to update the pkgfile database.' +arch=('any') +depends=('pkgfile') +source=('pkgfile.hook') +md5sums=('fb898371b45dbb50e35404ac9be8a43b') + +package() { + install -D -m0644 "${srcdir}/pkgfile.hook" "${pkgdir}/usr/share/libalpm/hooks/pkgfile.hook" +} + diff --git a/pkgfile.hook b/pkgfile.hook new file mode 100644 index 00000000000..18bb465aaf0 --- /dev/null +++ b/pkgfile.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Operation = Remove +Type = Package +Target = * + +[Action] +Description = Updating pkgfile database +When = PostTransaction +Exec = /bin/sh -c 'pkgfile --update --quiet <&- >&- 2>&- &' |