desktop/haskell-bytestring-show/haskell-bytestring-show.install
Adrian Chaves Fernandez (Gallaecio) 0cad390e24 Added Haskell Bytestring Show module.
2012-11-01 11:07:53 +00:00

38 lines
512 B
Plaintext

pkgname=haskell-bytestring-show
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
}