Date: Wednesday, April 5, 2023 @ 08:43:41
Author: felixonmars
Revision: 1436620
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-pandoc/repos/community-staging-x86_64/
haskell-pandoc/repos/community-staging-x86_64/PKGBUILD
(from rev 1436619, haskell-pandoc/trunk/PKGBUILD)
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
Copied: haskell-pandoc/repos/community-staging-x86_64/PKGBUILD (from rev
1436619, haskell-pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-05 08:43:41 UTC (rev 1436620)
@@ -0,0 +1,69 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Arch Haskell Team <[email protected]>
+
+_hkgname=pandoc
+pkgname=haskell-pandoc
+pkgver=3.0.1
+pkgrel=32
+pkgdesc='Conversion between markup formats'
+url='https://pandoc.org'
+license=('GPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-glob' 'haskell-juicypixels' 'haskell-sha'
'haskell-aeson'
+ 'haskell-aeson-pretty' 'haskell-attoparsec' 'haskell-base64'
'haskell-blaze-html'
+ 'haskell-blaze-markup' 'haskell-case-insensitive' 'haskell-citeproc'
'haskell-commonmark'
+ 'haskell-commonmark-extensions' 'haskell-commonmark-pandoc'
'haskell-connection'
+ 'haskell-data-default' 'haskell-doclayout' 'haskell-doctemplates'
'haskell-emojis'
+ 'haskell-file-embed' 'haskell-gridtables' 'haskell-haddock-library'
'haskell-http-client'
+ 'haskell-http-client-tls' 'haskell-http-types' 'haskell-ipynb'
'haskell-jira-wiki-markup'
+ 'haskell-mime-types' 'haskell-network' 'haskell-network-uri'
'haskell-pandoc-types'
+ 'haskell-pretty-show' 'haskell-random' 'haskell-safe'
'haskell-scientific'
+ 'haskell-skylighting' 'haskell-skylighting-core' 'haskell-split'
'haskell-syb'
+ 'haskell-tagsoup' 'haskell-temporary' 'haskell-texmath'
'haskell-text-conversions'
+ 'haskell-unicode-collation' 'haskell-unicode-transforms' 'haskell-xml'
+ 'haskell-xml-conduit' 'haskell-xml-types' 'haskell-yaml'
'haskell-zip-archive'
+ 'haskell-zlib')
+optdepends=('pandoc-crossref: for numbering figures, equations, tables and
cross-references to them with pandoc-crossref filter'
+ 'texlive-core: for pdf output')
+makedepends=('ghc' 'uusi' 'haskell-diff' 'haskell-tasty' 'haskell-tasty-golden'
+ 'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('15ed831b2333f4bddca2bcd1ae491b81271d457c9f83863b8a8a7c0c12d1d2c36f4a113b27e5cea0e48c4051650ae2ecf8115eff93e7ef5f39342a176d6d47f7')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ gen-setup
+ # 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 $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic
--disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/$pkgname" --datasubdir=$pkgname
--enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
--ghc-option=-fllvm \
+ -f-embed_data_files
+ runhaskell Setup build $MAKEFLAGS
+ 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 $_hkgname-$pkgver
+ LC_CTYPE=en_US.UTF-8 runhaskell Setup test --show-details=direct
+}
+
+package() {
+ cd $_hkgname-$pkgver
+ install -D -m744 register.sh
"${pkgdir}/usr/share/haskell/register/${_hkgname}.sh"
+ install -D -m744 unregister.sh
"${pkgdir}/usr/share/haskell/unregister/${_hkgname}.sh"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm "${pkgdir}/usr/share/doc/${pkgname}/COPYING.md"
+
+ # Should be in pandoc-cli, I think.
+ install -Dm644 man/pandoc.1 -t "${pkgdir}"/usr/share/man/man1/
+}