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