summaryrefslogtreecommitdiff
path: root/community/haskell-text/haskell-text.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-05 04:02:14 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-05 04:02:14 +0000
commitd7918d0226da2805ff09c48963d2c79e1327c630 (patch)
tree7899e81c92db3791af5dd17e05c3be10e8a9c007 /community/haskell-text/haskell-text.install
parentbc80cf7c2a23a9d9580f3db36652165fd307b598 (diff)
Mon May 5 03:56:02 UTC 2014
Diffstat (limited to 'community/haskell-text/haskell-text.install')
-rw-r--r--community/haskell-text/haskell-text.install35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/haskell-text/haskell-text.install b/community/haskell-text/haskell-text.install
new file mode 100644
index 000000000..44ef4244a
--- /dev/null
+++ b/community/haskell-text/haskell-text.install
@@ -0,0 +1,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
+}