diff options
Diffstat (limited to 'community/haskell-parsec/haskell-parsec.install')
-rw-r--r-- | community/haskell-parsec/haskell-parsec.install | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/haskell-parsec/haskell-parsec.install b/community/haskell-parsec/haskell-parsec.install new file mode 100644 index 000000000..25f4e6e9b --- /dev/null +++ b/community/haskell-parsec/haskell-parsec.install @@ -0,0 +1,35 @@ +pkgname=haskell-parsec + +_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 +} |