updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / haskell-criterion / PKGBUILD
blob8fc1970f3122674d29f142f4632ed0e3f39f3601
1 # Maintainer: Jan Stępień <jstepien@users.sourceforge.net>
2 # Contributor: Arch Haskell Team <arch-haskell@haskell.org>
4 _hkgname=criterion
5 pkgname=haskell-criterion
6 pkgver=0.6.0.0
7 pkgrel=1
8 pkgdesc="Robust, reliable performance measurement and analysis"
9 url="http://hackage.haskell.org/package/${_hkgname}"
10 license=('custom:BSD3')
11 arch=('i686' 'x86_64')
12 makedepends=()
13 depends=('ghc' 'haskell-aeson>=0.3.2.12' 'haskell-bytestring=0.9.1.10' 'haskell-containers=0.4.0.0' 'haskell-deepseq=1.1.0.2' 'haskell-directory=1.1.0.0' 'haskell-filepath=1.2.0.0' 'haskell-hastache>=0.1.5' 'haskell-mtl=2.0.1.0' 'haskell-mwc-random>=0.8.0.3' 'haskell-parsec=3.1.1' 'haskell-statistics>=0.10.0.0' 'haskell-time=1.2.0.3' 'haskell-transformers=0.2.2.0' 'haskell-vector>=0.7.1' 'haskell-vector-algorithms>=0.4')
14 options=('strip')
15 source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
16 install=${pkgname}.install
17 md5sums=('347c3ce8db6650eead544ffac48ca479')
18 build() {
19     cd ${srcdir}/${_hkgname}-${pkgver}
20     runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \
21        --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
22     runhaskell Setup build
23     runhaskell Setup haddock
24     runhaskell Setup register   --gen-script
25     runhaskell Setup unregister --gen-script
26     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
28 package() {
29     cd ${srcdir}/${_hkgname}-${pkgver}
30     install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
31     install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
32     install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
33     ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
34     runhaskell Setup copy --destdir=${pkgdir}
35     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
36     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE