summarylogtreecommitdiffstats
path: root/minetest-usrdir_patch.hook
diff options
context:
space:
mode:
authorshellkr2016-05-29 02:09:44 +0200
committershellkr2016-05-29 02:09:44 +0200
commit28ed2b0d05f335378234f9c1901f6b250323c3dd (patch)
treeaf1d16a78e3a24abc99509da15e6edd0b723281b /minetest-usrdir_patch.hook
downloadaur-28ed2b0d05f335378234f9c1901f6b250323c3dd.tar.gz
initial push
Diffstat (limited to 'minetest-usrdir_patch.hook')
-rw-r--r--minetest-usrdir_patch.hook14
1 files changed, 14 insertions, 0 deletions
diff --git a/minetest-usrdir_patch.hook b/minetest-usrdir_patch.hook
new file mode 100644
index 000000000000..4e74a2771f7f
--- /dev/null
+++ b/minetest-usrdir_patch.hook
@@ -0,0 +1,14 @@
+# Patch Minetest to recognize /usr/share/minetest for mods.
+# NOTE: will not run if the transaction is interrupted for any reason
+
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = minetest
+Target = minetest-git
+
+[Action]
+Depends = minetest
+When = PostTransaction
+Exec = /bin/sh -c 'cd / && patch -p1 -i /usr/share/libalpm/scripts/minetest-usrdir_patch.patch'