updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / haskell-timezone-series / PKGBUILD
blob746a54f8744c8717299429f84e85c00cb00f01d7
1 # Maintainer: Cedric Girard <girard.cedric@gmail.com>
2 # Contributor: gour <gour@atmarama.net>
3 _hkgname=timezone-series
4 pkgname=haskell-timezone-series
5 pkgver=0.1.2
6 pkgrel=1
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')
11 makedepends=()
12 depends=('ghc' 'haskell-time=1.2.0.3')
13 options=('strip')
14 source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
15 install=${pkgname}.install
16 md5sums=('001bf49010b5b67ea00cebe989e6c3a5')
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