diff options
author | yardenac | 2013-05-09 16:26:14 -0700 |
---|---|---|
committer | yardenac | 2013-05-09 16:26:14 -0700 |
commit | e0bb914520d04608d86d3d6c7df4f0adbf30edb5 (patch) | |
tree | d6679642aac5426cfda4f66d0c2115e8aa3a2d67 /haskell-hsemail.install | |
download | aur-e0bb914520d04608d86d3d6c7df4f0adbf30edb5.tar.gz |
make subdir for packages
Diffstat (limited to 'haskell-hsemail.install')
-rw-r--r-- | haskell-hsemail.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/haskell-hsemail.install b/haskell-hsemail.install new file mode 100644 index 000000000000..6764193ab0ce --- /dev/null +++ b/haskell-hsemail.install @@ -0,0 +1,26 @@ +# custom variables +pkgname=haskell-hsemail +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) +} |