5 # PKGBUILD options/directives
9 pkgdesc="A collection of tools for processing XML with Haskell."
10 url="http://www.fh-wedel.de/~si/HXmlToolbox/index.html"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
15 "haskell-hunit=1.2.2.3-2.1"
16 "haskell-binary=0.5.0.2-8"
17 "haskell-deepseq=1.1.0.2-2.1"
18 "haskell-hxt-charproperties=9.1.0-18"
19 "haskell-hxt-regex-xmlschema=9.0.1-1"
20 "haskell-hxt-unicode=9.0.1-18"
21 "haskell-network=2.3.0.2-2.1"
22 "haskell-parsec=3.1.1-2.1")
24 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
25 install="${pkgname}.install"
26 sha256sums=("8c8810d5c7ad167084198ded47317738cd1b470ad82c2d002587cfd8c2ea16b7")
30 cd ${srcdir}/${_hkgname}-${pkgver}
32 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
33 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
34 --libsubdir=\$compiler/site-local/\$pkgid
35 runhaskell Setup build
36 runhaskell Setup haddock
37 runhaskell Setup register --gen-script
38 runhaskell Setup unregister --gen-script
39 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
43 cd ${srcdir}/${_hkgname}-${pkgver}
44 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
45 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
46 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
47 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
48 runhaskell Setup copy --destdir=${pkgdir}
49 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
50 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}