diff options
author | root <root@rshg054.dnsready.net> | 2013-03-12 00:04:27 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-12 00:04:27 -0700 |
commit | 9f8838d16719128121b4efde3bf6c7cc650f1801 (patch) | |
tree | 54cb20333b4366966150ddc060ca8da9b26bdd40 /community/haskell-dlist/haskell-dlist.install | |
parent | ef17357a9745e05e301b724d13a341067ddb3d5b (diff) |
Tue Mar 12 00:04:26 PDT 2013
Diffstat (limited to 'community/haskell-dlist/haskell-dlist.install')
-rw-r--r-- | community/haskell-dlist/haskell-dlist.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/haskell-dlist/haskell-dlist.install b/community/haskell-dlist/haskell-dlist.install new file mode 100644 index 000000000..c08242863 --- /dev/null +++ b/community/haskell-dlist/haskell-dlist.install @@ -0,0 +1,26 @@ +# custom variables +pkgname=haskell-dlist +HS_DIR=/usr/share/haskell/${pkgname} + +# functions +post_install() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + +pre_upgrade() { + ${HS_DIR}/unregister.sh +} + +post_upgrade() { + ${HS_DIR}/register.sh + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} + +pre_remove() { + ${HS_DIR}/unregister.sh +} + +post_remove() { + (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} |