mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
38 lines
503 B
Plaintext
38 lines
503 B
Plaintext
pkgname=haskell-binary
|
|
HS_DIR=/usr/share/haskell/${pkgname}
|
|
|
|
registerPackage() {
|
|
${HS_DIR}/register.sh
|
|
}
|
|
|
|
unregisterPackage() {
|
|
${HS_DIR}/unregister.sh
|
|
}
|
|
|
|
updatePackageIndex() {
|
|
(cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
|
}
|
|
|
|
post_install() {
|
|
registerPackage
|
|
updatePackageIndex
|
|
}
|
|
|
|
pre_upgrade() {
|
|
unregisterPackage
|
|
}
|
|
|
|
post_upgrade() {
|
|
registerPackage
|
|
updatePackageIndex
|
|
}
|
|
|
|
pre_remove() {
|
|
unregisterPackage
|
|
}
|
|
|
|
post_remove() {
|
|
updatePackageIndex
|
|
}
|
|
|