summarylogtreecommitdiffstats
path: root/minetest-usrdir_patch.hook
blob: 4e74a2771f7f7702047b0ebb78f7f7125722f4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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'