summaryrefslogtreecommitdiff
path: root/extra/haskell-text/haskell-text.install
blob: 44ef4244a7c0f54b9d3a2976f9113a5b0c7aba23 (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
27
28
29
30
31
32
33
34
35
pkgname=haskell-text

_register() {
  usr/share/haskell/${pkgname}/register.sh
}

_unregister() {
  usr/share/haskell/${pkgname}/unregister.sh
}

_gen_contents() {
  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}

post_install() {
  _register
  _gen_contents
}

pre_upgrade() {
  _unregister
}

post_upgrade() {
  _register
  _gen_contents
}

pre_remove() {
  _unregister
}

post_remove() {
  _gen_contents
}