summarylogtreecommitdiffstats
path: root/unreal-engine-5-pacman-cache.hook
diff options
context:
space:
mode:
Diffstat (limited to 'unreal-engine-5-pacman-cache.hook')
-rw-r--r--unreal-engine-5-pacman-cache.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/unreal-engine-5-pacman-cache.hook b/unreal-engine-5-pacman-cache.hook
new file mode 100644
index 000000000000..a54e413a16fe
--- /dev/null
+++ b/unreal-engine-5-pacman-cache.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = unreal-engine
+
+[Action]
+Description = Leaving only one Unreal Engine 5 package in cache to save storage space...
+Depends = pacman-contrib
+When = PostTransaction
+Exec = /bin/sh -c '/usr/bin/paccache -rvk1 unreal-engine'