5 # PKGBUILD options/directives
9 pkgdesc="Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds."
10 url="http://hackage.haskell.org/package/${_hkgname}"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
16 "haskell-old-locale=1.0.0.2"
17 "haskell-old-time=1.0.0.6"
18 "haskell-utf8-string=0.3.6"
21 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
22 install="${pkgname}.install"
23 sha256sums=("e614f7019a035c1eaa8952cdcfe5291c539f670f218ab591727d33b4367b71fb")
27 cd ${srcdir}/${_hkgname}-${pkgver}
29 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
30 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
31 --libsubdir=\$compiler/site-local/\$pkgid
32 runhaskell Setup build
33 runhaskell Setup haddock
34 runhaskell Setup register --gen-script
35 runhaskell Setup unregister --gen-script
36 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
40 cd ${srcdir}/${_hkgname}-${pkgver}
41 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
42 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
43 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
44 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
45 runhaskell Setup copy --destdir=${pkgdir}
46 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
47 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}