desktop/haskell-transformers/haskell-transformers.install

35 lines
431 B
Plaintext
Raw Normal View History

pkgname=haskell-transformers
_register() {
usr/share/haskell/${pkgname}/register.sh
}
_unregister() {
usr/share/haskell/${pkgname}/unregister.sh
}
_gen_contents() {
2011-10-10 02:06:48 +08:00
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
post_install() {
_register
_gen_contents
}
2011-10-10 02:06:48 +08:00
pre_upgrade() {
_unregister
2011-10-10 02:06:48 +08:00
}
2011-10-10 02:06:48 +08:00
post_upgrade() {
_register
_gen_contents
2011-10-10 02:06:48 +08:00
}
2011-10-10 02:06:48 +08:00
pre_remove() {
_unregister
2011-10-10 02:06:48 +08:00
}
2011-10-10 02:06:48 +08:00
post_remove() {
_gen_contents
}