summarylogtreecommitdiffstats
path: root/istanbul.install
diff options
context:
space:
mode:
authorozgursarier2015-11-14 08:02:05 +0200
committerozgursarier2015-11-14 08:02:05 +0200
commitd1ba65142d9f15ce31143984e507d8b7926e5d68 (patch)
treeb4c3645964d14caae7467abf99ade290fff32be5 /istanbul.install
downloadaur-d1ba65142d9f15ce31143984e507d8b7926e5d68.tar.gz
Initial import
Diffstat (limited to 'istanbul.install')
-rw-r--r--istanbul.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/istanbul.install b/istanbul.install
new file mode 100644
index 000000000000..2b89eec6e489
--- /dev/null
+++ b/istanbul.install
@@ -0,0 +1,18 @@
+post_install() {
+ export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
+ gconftool-2 --makefile-install-rule usr/share/gconf/schemas/istanbul.schemas >/dev/null
+}
+
+pre_upgrade() {
+ pre_remove
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ schemas=$(pacman -Ql istanbul | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }')
+ export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
+ gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
+}