5 # PKGBUILD options/directives
9 pkgdesc="Conversion between markup formats"
10 url="http://johnmacfarlane.net/pandoc"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
15 "haskell-http=4000.1.1-3.1"
16 "haskell-base64-bytestring=0.1.0.3-1"
17 "haskell-citeproc-hs=0.3.3-2"
18 "haskell-dlist=0.5-18"
19 "haskell-json=0.4.4-18"
20 "haskell-mtl=2.0.1.0-3.1"
21 "haskell-network=2.3.0.2-2.1"
22 "haskell-pandoc-types=1.8.2-1"
23 "haskell-parsec=3.1.1-2.1"
25 "haskell-tagsoup=0.12.4-1"
26 "haskell-texmath=0.5.0.2-1"
27 "haskell-utf8-string=0.3.6-7.2"
28 "haskell-xhtml=3000.2.0.1-7.1"
29 "haskell-xml=1.3.10-1"
30 "haskell-zip-archive=0.1.1.7-20")
32 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
33 install="${pkgname}.install"
34 sha256sums=("f1025377b2c78043b06d7963eb61ce66c2290d2580f2488a8186c82c24f09433")
38 cd ${srcdir}/${_hkgname}-${pkgver}
40 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
41 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
42 --libsubdir=\$compiler/site-local/\$pkgid
43 runhaskell Setup build
44 runhaskell Setup haddock
45 runhaskell Setup register --gen-script
46 runhaskell Setup unregister --gen-script
47 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
51 cd ${srcdir}/${_hkgname}-${pkgver}
52 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
53 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
54 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
55 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
56 runhaskell Setup copy --destdir=${pkgdir}
57 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
58 chmod u=rw,go=r ${pkgdir}/usr/share/man/man1/*
59 chmod u=rw,go=r ${pkgdir}/usr/share/man/man5/*
60 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}