Date: Sunday, January 15, 2023 @ 14:13:35 Author: felixonmars Revision: 1383621
upgpkg: pandoc 2.19.2-53: add bash completion (FS#77092) Modified: pandoc/trunk/PKGBUILD ----------+ PKGBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-15 13:58:44 UTC (rev 1383620) +++ PKGBUILD 2023-01-15 14:13:35 UTC (rev 1383621) @@ -4,7 +4,7 @@ pkgname=pandoc pkgver=2.19.2 -pkgrel=52 +pkgrel=53 pkgdesc='Conversion between markup formats' url='https://pandoc.org' license=('GPL') @@ -30,8 +30,8 @@ 'texlive-core: for pdf output') conflicts=('haskell-pandoc') replaces=('haskell-pandoc') -makedepends=('ghc' 'uusi' 'haskell-diff' 'haskell-tasty' 'haskell-tasty-golden' 'haskell-tasty-hunit' - 'haskell-tasty-lua' 'haskell-tasty-quickcheck') +makedepends=('ghc' 'uusi' 'bubblewrap' 'haskell-diff' 'haskell-tasty' 'haskell-tasty-golden' + 'haskell-tasty-hunit' 'haskell-tasty-lua' 'haskell-tasty-quickcheck') source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha512sums=('3628a9193d5138294bae562726bcd94567eec10fa0053d43739af04d4eba0a53bd49c2c000a5360afcac08153960a9bf2ee4be3c419cec7e5c13273e718edc80') @@ -68,4 +68,8 @@ runhaskell Setup copy --destdir="${pkgdir}" rm "${pkgdir}/usr/share/doc/${pkgname}/COPYING.md" install -Dm644 man/pandoc.1 -t "${pkgdir}"/usr/share/man/man1/ + + LD_LIBRARY_PATH="$PWD/dist/build" bwrap --ro-bind / / --tmpfs /usr/share --ro-bind "$pkgdir"/usr/share/pandoc /usr/share/pandoc -- \ + dist/build/pandoc/pandoc --bash-completion > pandoc-completion.bash + install -Dm644 pandoc-completion.bash "$pkgdir"/usr/share/bash-completion/completions/pandoc }
