summarylogtreecommitdiffstats
path: root/haskell-codec-mbox.install
diff options
context:
space:
mode:
authoryardenac2013-05-09 16:26:14 -0700
committeryardenac2013-05-09 16:26:14 -0700
commit653da5c7aaabf63b72bd1ae1699a47c5444f9b9f (patch)
tree790c57146956f8e8fc344e0c2c20245291add624 /haskell-codec-mbox.install
downloadaur-653da5c7aaabf63b72bd1ae1699a47c5444f9b9f.tar.gz
make subdir for packages
Diffstat (limited to 'haskell-codec-mbox.install')
-rw-r--r--haskell-codec-mbox.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/haskell-codec-mbox.install b/haskell-codec-mbox.install
new file mode 100644
index 000000000000..82e7a2b34d1a
--- /dev/null
+++ b/haskell-codec-mbox.install
@@ -0,0 +1,26 @@
+# custom variables
+pkgname=haskell-codec-mbox
+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)
+}