Date: Wednesday, October 20, 2010 @ 18:18:02 Author: remy Revision: 96416
Rebuild with documentation. Modified: haskell-dataenc/trunk/PKGBUILD haskell-dataenc/trunk/haskell-dataenc.install -------------------------+ PKGBUILD | 18 +++++++++++++----- haskell-dataenc.install | 8 ++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-10-20 22:17:54 UTC (rev 96415) +++ PKGBUILD 2010-10-20 22:18:02 UTC (rev 96416) @@ -1,26 +1,34 @@ # Maintainer: Vesa Kaihlavirta <[email protected]> # Contributor: Arch Haskell Team <[email protected]> +# Package generated by cabal2arch 0.7.5 pkgname=haskell-dataenc -pkgrel=4 pkgver=0.13.0.2 -pkgdesc="Monad transformer library" -url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/dataenc" +pkgrel=5 +pkgdesc="Data encoding library" +url="http://hackage.haskell.org/package/dataenc" license=('custom:BSD3') arch=('i686' 'x86_64') depends=(ghc=6.12.3 sh) options=('strip') source=(http://hackage.haskell.org/packages/archive/dataenc/$pkgver/dataenc-$pkgver.tar.gz) install=haskell-dataenc.install +md5sums=('65f6e8fdbc0adef572afdacd2c492289') build() { cd ${srcdir}/dataenc-$pkgver - runhaskell Setup configure -p --enable-shared --enable-split-objs --prefix=/usr + runhaskell Setup configure -p --enable-shared --enable-split-objs --prefix=/usr --docdir=/usr/share/doc/${pkgname} runhaskell Setup build + runhaskell Setup haddock runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script +} +package() { + cd ${srcdir}/dataenc-0.13.0.2 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/dataenc runhaskell Setup copy --destdir=${pkgdir} install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE } -md5sums=('65f6e8fdbc0adef572afdacd2c492289') Modified: haskell-dataenc.install =================================================================== --- haskell-dataenc.install 2010-10-20 22:17:54 UTC (rev 96415) +++ haskell-dataenc.install 2010-10-20 22:18:02 UTC (rev 96416) @@ -1,13 +1,21 @@ HS_DIR=/usr/share/haskell/haskell-dataenc 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 $*
