Date: Wednesday, March 22, 2023 @ 04:46:37 Author: felixonmars Revision: 1426293
archrelease: copy trunk to community-staging-x86_64 Added: pandoc-cli/repos/community-staging-x86_64/ pandoc-cli/repos/community-staging-x86_64/PKGBUILD (from rev 1426292, pandoc-cli/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: pandoc-cli/repos/community-staging-x86_64/PKGBUILD (from rev 1426292, pandoc-cli/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2023-03-22 04:46:37 UTC (rev 1426293) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=pandoc-cli +pkgver=0.1 +pkgrel=38 +pkgdesc="Conversion between documentation formats" +url="https://pandoc.org" +license=("GPL") +arch=('x86_64') +provides=('pandoc') +conflicts=('pandoc') +replaces=('pandoc') +depends=('ghc-libs' 'hslua-cli' 'haskell-pandoc' 'haskell-pandoc-lua-engine' 'haskell-pandoc-server' + 'haskell-safe' 'haskell-wai-extra' 'haskell-warp') +makedepends=('ghc' 'uusi') +source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('c5d6ac5fecfcbc0c2a69c696dc543e60bcf9685fc3db3ae5d9929abe6c28cb05') + +prepare() { + cd $pkgname-$pkgver + gen-setup +} + +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 --datasubdir=haskell-pandoc-cli --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' \ + -flua -f-nightly -fserver + + runhaskell Setup build $MAKEFLAGS +} + +check() { + cd $pkgname-$pkgver + runhaskell Setup test --show-details=direct +} + +package() { + cd $pkgname-$pkgver + runhaskell Setup copy --destdir="$pkgdir" + install -D -m644 COPYING.md -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/COPYING.md + + LD_LIBRARY_PATH="$PWD/dist/build" dist/build/pandoc/pandoc --bash-completion > pandoc-completion.bash + install -Dm644 pandoc-completion.bash "$pkgdir"/usr/share/bash-completion/completions/pandoc +}