Date: Sunday, March 4, 2018 @ 03:56:41 Author: felixonmars Revision: 302283
archrelease: copy trunk to community-staging-x86_64 Added: pandoc/repos/community-staging-x86_64/ pandoc/repos/community-staging-x86_64/PKGBUILD (from rev 302282, pandoc/trunk/PKGBUILD) ----------+ PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) Copied: pandoc/repos/community-staging-x86_64/PKGBUILD (from rev 302282, pandoc/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-03-04 03:56:41 UTC (rev 302283) @@ -0,0 +1,66 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=pandoc +pkgver=2.1.2 +pkgrel=1 +pkgdesc="Conversion between markup formats" +url="http://pandoc.org" +license=("GPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-http' 'haskell-juicypixels' 'haskell-sha' 'haskell-aeson' + 'haskell-aeson-pretty' 'haskell-base64-bytestring' 'haskell-blaze-html' + 'haskell-blaze-markup' 'haskell-case-insensitive' 'haskell-cmark-gfm' + 'haskell-data-default' 'haskell-doctemplates' 'haskell-exceptions' 'haskell-glob' + 'haskell-mtl' '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' '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=('a1b02c353ac021609abe24685eb6e5c57b706cd0b6136e076d4df584344810b184ecb18f2206b21c1d6a0484aa37ccaafe41e1771829e59fe26879080739b1e9') + +prepare() { + cd "${srcdir}/$pkgname-${pkgver}" + # TODO: find a better solution + sed -i "s|let env' = dynlibEnv ++ |let env' = dynlibEnv ++ [(\"LD_LIBRARY_PATH\", \"$PWD/dist/build\")] ++ |" test/Tests/Command.hs + + sed -i 's/tasty >= 0.11 && < 0.13,/tasty >= 0.11,/' $pkgname.cabal +} + +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" --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 + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + LC_CTYPE=en_US.UTF-8 runhaskell Setup test +} + +package() { + cd "${srcdir}/${pkgbase}-${pkgver}" + install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup copy --destdir="${pkgdir}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.md" +}