[arch-commits] Commit in haskell-primitive/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Nov 12 19:37:52 UTC 2021


    Date: Friday, November 12, 2021 @ 19:37:51
  Author: felixonmars
Revision: 1044755

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-primitive/repos/community-staging-x86_64/
  haskell-primitive/repos/community-staging-x86_64/PKGBUILD
    (from rev 1044754, haskell-primitive/trunk/PKGBUILD)

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

Copied: haskell-primitive/repos/community-staging-x86_64/PKGBUILD (from rev 1044754, haskell-primitive/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-12 19:37:51 UTC (rev 1044755)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-primitive
+pkgver=0.7.2.0
+pkgrel=23
+pkgdesc="Wrappers for primitive operations"
+url="https://hackage.haskell.org/package/primitive"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+checkdepends=('haskell-base-orphans' 'haskell-quickcheck' 'haskell-quickcheck-classes-base'
+              'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tagged'
+              'haskell-transformers-compat')
+source=("https://hackage.haskell.org/packages/archive/primitive/${pkgver}/primitive-${pkgver}.tar.gz")
+sha512sums=('ff273e272255484ca9578758befd4ef549e9a067975dbdfd61fad444868746ea392e3fec4f161e102c93d3cda336923c7651acc6fa684e5c08dd78877dd0d05c')
+
+build() {
+  cd primitive-$pkgver
+
+  if (( CHECKFUNC )); then
+    _opts=('--enable-tests')
+  else
+    _opts=('--disable-tests')
+  fi
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+      --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \
+      --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
+  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 primitive-$pkgver
+  runhaskell Setup test --show-details=direct
+}
+
+package() {
+  cd primitive-$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 -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
+  rm -f "$pkgdir"/usr/share/doc/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list