summaryrefslogtreecommitdiff
path: root/community/lat/lat.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/lat/lat.install')
-rw-r--r--community/lat/lat.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/lat/lat.install b/community/lat/lat.install
new file mode 100644
index 000000000..70bbdd964
--- /dev/null
+++ b/community/lat/lat.install
@@ -0,0 +1,26 @@
+pkgname=lat
+
+post_install() {
+ scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*\.omf$' | awk '{ print $2 }'`)
+
+ for scroll in "${scrolls[@]}" ; do
+ scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
+ done
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*\.omf$' | awk '{ print $2 }'`)
+
+ for scroll in "${scrolls[@]}" ; do
+ scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
+ done
+}
+