summaryrefslogtreecommitdiff
path: root/community/lat/lat.install
blob: 70bbdd96427bd234185ccaa3c7112e98b01b49b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}