summarylogtreecommitdiffstats
path: root/wine-gecko-version-fix.hook
diff options
context:
space:
mode:
authorqaz2020-05-12 18:19:02 +0800
committerqaz2020-05-12 18:19:02 +0800
commit4b90879cb639bc32e463c50d4d049b31481a9762 (patch)
tree43d360079d94859969c2b7724da05a1d0367b7ab /wine-gecko-version-fix.hook
downloadaur-4b90879cb639bc32e463c50d4d049b31481a9762.tar.gz
first commit
Diffstat (limited to 'wine-gecko-version-fix.hook')
-rw-r--r--wine-gecko-version-fix.hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/wine-gecko-version-fix.hook b/wine-gecko-version-fix.hook
new file mode 100644
index 00000000000..7ccd930b302
--- /dev/null
+++ b/wine-gecko-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/gecko/*
+
+[Action]
+Description = Fixing the version of wine-gecko file.
+When = PostTransaction
+Exec = /usr/bin/sh -c 'find /usr/share/wine/gecko -type l -exec unlink {} \; ; ln -sf "$(pacman -Qlq wine-gecko | grep "wine.gecko-\\([-.[:digit:]]\\+\\)-x86_64.msi")" "/usr/share/wine/gecko/$(sed -n "s/.*\\(wine.gecko-[-.[:digit:]]\+-x86_64.msi\\).*/\\1/p" /usr/lib/wine/appwiz.cpl.so)" 2>/dev/null ; ln -sf "$(pacman -Qlq wine-gecko | grep "wine.gecko-\\([-.[:digit:]]\\+\\)-x86.msi")" "/usr/share/wine/gecko/$(sed -n "s/.*\\(wine.gecko-[-.[:digit:]]\+-x86.msi\\).*/\\1/p" /usr/lib32/wine/appwiz.cpl.so)" 2>/dev/null ; true'