Date: Thursday, March 30, 2023 @ 09:01:22
  Author: felixonmars
Revision: 1431077

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: pandoc-plot/repos/community-staging-x86_64/PKGBUILD (from rev 1431076, 
pandoc-plot/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-03-30 09:01:22 UTC (rev 1431077)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=pandoc-plot
+pkgver=1.6.1
+pkgrel=34
+pkgdesc="A Pandoc filter to include figures generated from code blocks using 
your plotting toolkit of choice."
+url="https://github.com/LaurentRDC/pandoc-plot#readme";
+license=("GPL")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-data-default' 'haskell-gitrev' 
'haskell-hashable'
+         'haskell-lifted-async' 'haskell-lifted-base' 
'haskell-optparse-applicative'
+         'haskell-pandoc' 'haskell-pandoc-types' 'haskell-shakespeare' 
'haskell-tagsoup'
+         'haskell-typed-process' 'haskell-yaml')
+makedepends=('ghc' 'haskell-hspec-expectations' 'haskell-tasty' 
'haskell-tasty-hspec'
+             'haskell-tasty-hunit')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha256sums=('2352545aaaf87dfd289a2afdcf83502000a2e6b3f3541ea94391f2c656593e0b')
+
+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 \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie' 
+
+  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"
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Reply via email to