mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 09:47:18 +08:00
28 lines
492 B
Plaintext
28 lines
492 B
Plaintext
|
HS_DIR=usr/share/haskell/haskell-cabal-install
|
||
|
|
||
|
#pre_install() {
|
||
|
# echo "insert pre_install routine here"
|
||
|
#}
|
||
|
|
||
|
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)
|
||
|
}
|