Date: Tuesday, November 21, 2017 @ 18:33:43 Author: felixonmars Revision: 267835
upgpkg: pandoc 2.0.3-1 rebuild with pandoc,2.0.3 Modified: pandoc/trunk/PKGBUILD ----------+ PKGBUILD | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-11-21 18:26:03 UTC (rev 267834) +++ PKGBUILD 2017-11-21 18:33:43 UTC (rev 267835) @@ -3,8 +3,8 @@ # Contributor: Arch Haskell Team <[email protected]> pkgname=pandoc -pkgver=2.0.2 -pkgrel=3 +pkgver=2.0.3 +pkgrel=1 pkgdesc="Conversion between markup formats" url="http://pandoc.org" license=("GPL") @@ -13,26 +13,27 @@ "haskell-aeson-pretty" "haskell-base64-bytestring" "haskell-blaze-html" "haskell-blaze-markup" "haskell-case-insensitive" "haskell-cmark-gfm" "haskell-data-default" "haskell-doctemplates" "haskell-glob" "haskell-mtl" - "haskell-haddock-library" "haskell-skylighting" "haskell-hslua" "haskell-http-client" - "haskell-syb" "haskell-http-client-tls" "haskell-http-types" "haskell-safe" "haskell-split" - "haskell-text" "haskell-texmath" "haskell-network" "haskell-pandoc-types" "haskell-parsec" - "haskell-random" "haskell-scientific" "haskell-tagsoup" "haskell-temporary" - "haskell-network-uri" "haskell-unordered-containers" "haskell-zip-archive" "haskell-vector" - "haskell-xml" "haskell-yaml" "haskell-zlib") + "haskell-haddock-library" "haskell-skylighting" "haskell-hslua" "haskell-hslua-module-text" + "haskell-http-client" "haskell-syb" "haskell-http-client-tls" "haskell-http-types" + "haskell-safe" "haskell-split" "haskell-text" "haskell-texmath" "haskell-network" + "haskell-pandoc-types" "haskell-parsec" "haskell-random" "haskell-scientific" + "haskell-tagsoup" "haskell-temporary" "haskell-network-uri" "haskell-unordered-containers" + "haskell-zip-archive" "haskell-vector" "haskell-xml" "haskell-yaml" "haskell-zlib") optdepends=('pandoc-citeproc: for citation rendering with pandoc-citeproc filter' 'pandoc-crossref: for numbering figures, equations, tables and cross-references to them with pandoc-crossref filter' 'texlive-core: for pdf output') conflicts=('haskell-pandoc') replaces=('haskell-pandoc') -makedepends=('ghc') +makedepends=('ghc' 'haskell-diff' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck' + 'haskell-tasty-golden' 'haskell-quickcheck' 'haskell-executable-path') source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('9f045898db89c2eb8c47e833e76a0cca14b1a3cc71409279de3c6b92e93b12d6d9d820883d64f88f9ef5db4a997814392ef7fca2ae0112b9d7f4210c8662e249') +sha512sums=('92efa19141991d0737f0cda8ca09a812286bd7126e95d295e7c0d8b7b14e0be85a842f12756d0608765d2135f0ced2e786f2ffa8295d68e4b1fc52447336841d') build() { cd "${srcdir}/${pkgname}-${pkgver}" runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgname" \ + --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgname" --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -f-old-locale -fnetwork-uri -f-trypandoc -f-embed_data_files -f-weigh-pandoc -f-static runhaskell Setup build @@ -42,6 +43,13 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + # TODO: find a way to run pandoc executable in tests with dynamic executable enabled + # LD_PRELOAD=$(ls dist/build/libHSpandoc-*-ghc*.so) + runhaskell Setup test || warning "Tests failed" +} + package() { cd "${srcdir}/${pkgbase}-${pkgver}" install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
