mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
36 lines
421 B
Plaintext
36 lines
421 B
Plaintext
pkgname=haskell-network-uri
|
|
|
|
_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
|
|
}
|