updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / haskell-timezone-olson / PKGBUILD
blob19bf7e081cc8db28bbd238792889d5c10f9ef769
1 # Maintainer: Cedric Girard <girard.cedric@gmail.com>
2 # Contributor: gour <gour@atmarama.net>
3 _hkgname=timezone-olson
4 pkgname=haskell-timezone-olson
5 pkgver=0.1.2
6 pkgrel=1
7 pkgdesc="A pure Haskell parser and renderer for binary Olson timezone files"
8 url="http://hackage.haskell.org/package/${_hkgname}"
9 license=('custom:BSD3')
10 arch=('i686' 'x86_64')
11 makedepends=()
12 depends=('ghc' 'haskell-binary<0.6' 'haskell-bytestring=0.9.1.10' 'haskell-extensible-exceptions=0.1.1.2' 'haskell-time=1.2.0.3' 'haskell-timezone-series<0.2')
13 options=('strip')
14 source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
15 install=${pkgname}.install
16 md5sums=('85c0f25db53571157aa463890a8af2e4')
17 build() {
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
27 package() {
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