1 # Maintainer: Cedric Girard <girard.cedric@gmail.com>
2 # Contributor: gour <gour@atmarama.net>
3 _hkgname=timezone-series
4 pkgname=haskell-timezone-series
7 pkgdesc="Enhanced timezone handling for Data.Time"
8 url="http://hackage.haskell.org/package/${_hkgname}"
9 license=('custom:BSD3')
10 arch=('i686' 'x86_64')
12 depends=('ghc' 'haskell-time=1.2.0.3')
14 source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
15 install=${pkgname}.install
16 md5sums=('001bf49010b5b67ea00cebe989e6c3a5')
18 cd ${srcdir}/${_hkgname}-${pkgver}
19 runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \
20 --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
21 runhaskell Setup build
22 runhaskell Setup haddock
23 runhaskell Setup register --gen-script
24 runhaskell Setup unregister --gen-script
25 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
28 cd ${srcdir}/${_hkgname}-${pkgver}
29 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
30 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
31 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
32 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
33 runhaskell Setup copy --destdir=${pkgdir}
34 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
35 rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE