Date: Sunday, October 30, 2022 @ 14:53:10 Author: felixonmars Revision: 1339509
archrelease: copy trunk to community-staging-x86_64 Added: pandoc-crossref/repos/community-staging-x86_64/ pandoc-crossref/repos/community-staging-x86_64/PKGBUILD (from rev 1339508, pandoc-crossref/trunk/PKGBUILD) ----------+ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) Copied: pandoc-crossref/repos/community-staging-x86_64/PKGBUILD (from rev 1339508, pandoc-crossref/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-10-30 14:53:10 UTC (rev 1339509) @@ -0,0 +1,52 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=pandoc-crossref +pkgver=0.3.13.0 +pkgrel=38 +pkgdesc="Pandoc filter for cross-references" +url="https://hackage.haskell.org/package/${pkgname}" +license=("GPL2") +arch=('x86_64') +depends=('ghc-libs' 'haskell-data-default' 'haskell-gitrev' 'haskell-microlens' + 'haskell-microlens-mtl' 'haskell-microlens-th' 'haskell-open-browser' + 'haskell-optparse-applicative' 'pandoc' 'haskell-pandoc-types' 'haskell-syb' + 'haskell-utility-ht') +makedepends=('ghc' 'uusi' 'haskell-hspec') +conflicts=('haskell-pandoc-crossref') +replaces=('haskell-pandoc-crossref') +source=("$pkgname-$pkgver.tar.gz::https://github.com/lierdakil/pandoc-crossref/archive/v$pkgver.tar.gz") +sha512sums=('8ba496c48bee5f52ddaa0f30bc76a9143001149f4502b63cae7419fbaec0240b8ed7dde1a67edcc9fe66b1f9fb054b15d1fbd8d46e635c8965348e7edcbaff3a') + +prepare() { + cd $pkgname-$pkgver + uusi -u optparse-applicative -u pandoc $pkgname.cabal +} + +build() { + cd $pkgname-$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-enable_flaky_tests + 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 $pkgname-$pkgver + runhaskell Setup test --show-details=direct +} + +package() { + cd $pkgname-$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/LICENSE +}