[arch-commits] Commit in pandoc/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 31 12:30:10 UTC 2019


    Date: Tuesday, December 31, 2019 @ 12:30:09
  Author: felixonmars
Revision: 545620

archrelease: copy trunk to community-staging-x86_64

Added:
  pandoc/repos/community-staging-x86_64/
  pandoc/repos/community-staging-x86_64/PKGBUILD
    (from rev 545619, pandoc/trunk/PKGBUILD)

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Copied: pandoc/repos/community-staging-x86_64/PKGBUILD (from rev 545619, pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-31 12:30:09 UTC (rev 545620)
@@ -0,0 +1,67 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=pandoc
+pkgver=2.8
+pkgrel=9
+pkgdesc='Conversion between markup formats'
+url='https://pandoc.org'
+license=('GPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-http' 'haskell-juicypixels' 'haskell-sha' 'haskell-aeson'
+         'haskell-aeson-pretty' 'haskell-attoparsec' 'haskell-base-compat'
+         'haskell-base64-bytestring' 'haskell-blaze-html' 'haskell-blaze-markup'
+         'haskell-case-insensitive' 'haskell-cmark-gfm' 'haskell-data-default' 'haskell-doclayout'
+         'haskell-doctemplates' 'haskell-exceptions' 'haskell-glob' 'haskell-haddock-library'
+         'haskell-ipynb' 'haskell-skylighting' 'haskell-skylighting-core' 'haskell-hslua'
+         'haskell-hslua-module-system' 'haskell-hslua-module-text' 'haskell-http-client'
+         'haskell-syb' 'haskell-hsyaml' 'haskell-http-client-tls' 'haskell-http-types'
+         'haskell-safe' 'haskell-split' 'haskell-texmath' 'haskell-network' 'haskell-pandoc-types'
+         'haskell-random' 'haskell-scientific' 'haskell-tagsoup' 'haskell-temporary'
+         'haskell-text-conversions' 'haskell-network-uri' 'haskell-unicode-transforms'
+         'haskell-unordered-containers' 'haskell-zip-archive' 'haskell-vector' 'haskell-xml'
+         '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-lua'
+             '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=('2ca956c7e41077d4a9d27b68eaac270da13ff1a9ddd0a5ed532771f5739839d5dda49b64c174e5b0fefa4946bedb9029e8ff551c7181ca97e02d55c796fdd28f')
+
+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
+}
+
+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-trypandoc -f-embed_data_files -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 || warning "Tests failed"
+}
+
+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"
+}



More information about the arch-commits mailing list