From 7e7258048675abb09ff16cbb7a3382be0b4fc2f7 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech Date: Fri, 15 Jan 2021 22:59:18 -0500 Subject: [PATCH] Added hook to move completed AUR packages. --- mvaurpkg.hook | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mvaurpkg.hook diff --git a/mvaurpkg.hook b/mvaurpkg.hook new file mode 100644 index 0000000..c2f1217 --- /dev/null +++ b/mvaurpkg.hook @@ -0,0 +1,10 @@ +[Trigger] +Type=Package +Operation=Install +Operation=Upgrade +Target=* + +[Action] +Description=Moving completed AUR packages... +When=PostTransaction +Exec=/usr/bin/sh -c "find /var/lib/pacman/aur \( -name '*.pkg.tar.zst' -o -name '*.pkg.tar.xz' \) -exec mv '{}' /var/cache/pacman/aur \;"