summarylogtreecommitdiffstats
path: root/unreal-engine-4-pacman-cache.hook
diff options
context:
space:
mode:
authorNeko-san2022-07-07 03:02:02 -0500
committerNeko-san2022-07-07 03:02:02 -0500
commit0bac82935f23a54e3c3791251c90b1a5be0c12d7 (patch)
tree0f5fd47722111f7075a46bd7a9a00580b34bd516 /unreal-engine-4-pacman-cache.hook
parentac265d8b3d59589af2e55d2b7a7a8149be624aa8 (diff)
downloadaur-0bac82935f23a54e3c3791251c90b1a5be0c12d7.tar.gz
Corrected the pacman hook file name to specify UE4 to prevent conflicts with the Unreal Engine 5 package
Diffstat (limited to 'unreal-engine-4-pacman-cache.hook')
-rw-r--r--unreal-engine-4-pacman-cache.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/unreal-engine-4-pacman-cache.hook b/unreal-engine-4-pacman-cache.hook
new file mode 100644
index 000000000000..18517db0e90c
--- /dev/null
+++ b/unreal-engine-4-pacman-cache.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = unreal-engine-4
+
+[Action]
+Description = Leaving only one Unreal Engine 4 package in cache to save storage space...
+When = PostTransaction
+Exec = /bin/sh -c '/usr/bin/paccache -rvk1 unreal-engine-4'