diff options
author | qaz | 2020-05-12 18:19:02 +0800 |
---|---|---|
committer | qaz | 2020-05-12 18:19:02 +0800 |
commit | 4b90879cb639bc32e463c50d4d049b31481a9762 (patch) | |
tree | 43d360079d94859969c2b7724da05a1d0367b7ab /wine-mono-version-fix.hook | |
download | aur-4b90879cb639bc32e463c50d4d049b31481a9762.tar.gz |
first commit
Diffstat (limited to 'wine-mono-version-fix.hook')
-rw-r--r-- | wine-mono-version-fix.hook | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wine-mono-version-fix.hook b/wine-mono-version-fix.hook new file mode 100644 index 000000000000..28eccb953a3d --- /dev/null +++ b/wine-mono-version-fix.hook @@ -0,0 +1,11 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Target = usr/lib/wine/appwiz.cpl.so +Target = usr/share/wine/mono/* + +[Action] +Description = Fixing the version of wine-mono file. +When = PostTransaction +Exec = /usr/bin/sh -c 'find /usr/share/wine/mono -type l -exec unlink {} \; ; ln -sf "$(pacman -Qlq wine-mono | grep "wine-mono-\\([-x[:digit:].]\\+\\).msi")" "/usr/share/wine/mono/$(strings -eb /usr/lib/wine/appwiz.cpl.so | sed -n "s/.*\\(wine-mono-[-x[:digit:].]\\+.msi\\).*/\\1/p")" 2>/dev/null ; true' |