X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=archlinuxppc.git;a=blobdiff_plain;f=haskell-zlib%2Fhaskell-zlib.install;fp=haskell-zlib%2Fhaskell-zlib.install;h=d698cad771be0797ffe077c878888bcd4d7af792;hp=0000000000000000000000000000000000000000;hb=0e34f6a29022b387e3c919b228cbc01a35e51f92;hpb=565cf32fdf39b120760f58ae224235732d439ef4 diff --git a/haskell-zlib/haskell-zlib.install b/haskell-zlib/haskell-zlib.install new file mode 100644 index 0000000..d698cad --- /dev/null +++ b/haskell-zlib/haskell-zlib.install @@ -0,0 +1,21 @@ +HS_DIR=/usr/share/haskell/haskell-zlib +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) +} +op=$1 +shift +$op $*