Date: Monday, October 18, 2010 @ 16:24:47 Author: remy Revision: 95377
upgpkg: haskell-quickcheck 2.1.1.1-2 Rebuild to add Haddock documentation. Modified: haskell-quickcheck/trunk/PKGBUILD haskell-quickcheck/trunk/haskell-quickcheck.install ----------------------------+ PKGBUILD | 17 +++++++++++++---- haskell-quickcheck.install | 8 ++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-10-18 20:11:27 UTC (rev 95376) +++ PKGBUILD 2010-10-18 20:24:47 UTC (rev 95377) @@ -1,26 +1,35 @@ # Maintainer: Vesa Kaihlavirta <[email protected]> # Contributor: Arch Haskell Team <[email protected]> +# Package generated by cabal2arch 0.7.5 pkgname=haskell-quickcheck pkgver=2.1.1.1 -pkgrel=1 +pkgrel=2 pkgdesc="Automatic testing of Haskell programs" -url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/QuickCheck" +url="http://hackage.haskell.org/package/QuickCheck" license=('custom:BSD3') arch=('i686' 'x86_64') depends=(ghc=6.12.3 haskell-mtl=1.1.0.2 sh) options=('strip') source=(http://hackage.haskell.org/packages/archive/QuickCheck/$pkgver/QuickCheck-$pkgver.tar.gz) install=$pkgname.install +md5sums=('a9e9170599223dc21c21a0190aadb195') build() { cd $srcdir/QuickCheck-$pkgver - runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr + runhaskell Setup configure -p --enable-split-objs --enable-shared --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}/QuickCheck-$pkgver 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/QuickCheck runhaskell Setup copy --destdir=$pkgdir install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE } -md5sums=('a9e9170599223dc21c21a0190aadb195') Modified: haskell-quickcheck.install =================================================================== --- haskell-quickcheck.install 2010-10-18 20:11:27 UTC (rev 95376) +++ haskell-quickcheck.install 2010-10-18 20:24:47 UTC (rev 95377) @@ -1,13 +1,21 @@ HS_DIR=/usr/share/haskell/haskell-quickcheck 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 $*
