diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-05 04:02:14 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-05-05 04:02:14 +0000 |
commit | d7918d0226da2805ff09c48963d2c79e1327c630 (patch) | |
tree | 7899e81c92db3791af5dd17e05c3be10e8a9c007 /community/haskell-hashtables/haskell-hashtables.install | |
parent | bc80cf7c2a23a9d9580f3db36652165fd307b598 (diff) |
Mon May 5 03:56:02 UTC 2014
Diffstat (limited to 'community/haskell-hashtables/haskell-hashtables.install')
-rw-r--r-- | community/haskell-hashtables/haskell-hashtables.install | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/haskell-hashtables/haskell-hashtables.install b/community/haskell-hashtables/haskell-hashtables.install new file mode 100644 index 000000000..cfedbd818 --- /dev/null +++ b/community/haskell-hashtables/haskell-hashtables.install @@ -0,0 +1,35 @@ +pkgname=haskell-hashtables + +_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 +} |