summarylogtreecommitdiffstats
path: root/hook.install
diff options
context:
space:
mode:
authorSammysHP2016-04-17 13:07:47 +0200
committerSammysHP2016-04-17 13:07:47 +0200
commit30c2c39dd320d300ba6c14348154168ac5c2a5ab (patch)
treec8ce0a9c8e003ac105a200decfd7fb379f9e3207 /hook.install
parent9327d935d880b88220fd78747245647c78264293 (diff)
downloadaur-30c2c39dd320d300ba6c14348154168ac5c2a5ab.tar.gz
Use ALPM hooks
This package depends on flashplugin from [extra] and does not need any updates anymore. It patches the file via hooks automatically on every update of flashplugin.
Diffstat (limited to 'hook.install')
-rw-r--r--hook.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/hook.install b/hook.install
new file mode 100644
index 000000000000..e7520ec852ec
--- /dev/null
+++ b/hook.install
@@ -0,0 +1,12 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = flashplugin
+Target = flashplugin-focusfix
+
+[Action]
+Description = Apply flashplugin focusfix
+Depends = sed
+When = PostTransaction
+Exec = /usr/bin/sed -i -e 's/_NET_ACTIVE_WINDOW/XNET_ACTIVE_WINDOW/' /usr/lib/mozilla/plugins/libflashplayer.so