5 # PKGBUILD options/directives
6 pkgname=haskell-certificate
9 pkgdesc="Certificates and Key Reader/Writer"
10 url="http://github.com/vincenthz/hs-certificate"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
16 "haskell-asn1-data=0.5.1"
17 "haskell-base64-bytestring=0.1.0.3"
18 "haskell-bytestring=0.9.1.10"
19 "haskell-directory=1.1.0.0"
21 "haskell-time=1.2.0.3")
23 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
24 install="${pkgname}.install"
25 sha256sums=("4808840df44bc10275d58cc7638c2f896d14653643fd06870d738af337500943")
29 cd ${srcdir}/${_hkgname}-${pkgver}
31 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
32 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
33 --libsubdir=\$compiler/site-local/\$pkgid
34 runhaskell Setup build
35 runhaskell Setup haddock
36 runhaskell Setup register --gen-script
37 runhaskell Setup unregister --gen-script
38 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
42 cd ${srcdir}/${_hkgname}-${pkgver}
43 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
44 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
45 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
46 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
47 runhaskell Setup copy --destdir=${pkgdir}
48 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
49 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}