Date: Thursday, August 26, 2021 @ 14:21:24
  Author: felixonmars
Revision: 1006183

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-arithmoi/repos/community-staging-x86_64/PKGBUILD (from rev 
1006182, haskell-arithmoi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-08-26 14:21:24 UTC (rev 1006183)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=arithmoi
+pkgname=haskell-arithmoi
+pkgver=0.12.0.0
+pkgrel=16
+pkgdesc="Efficient basic number-theoretic functions."
+url="https://github.com/Bodigrim/arithmoi";
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-chimera' 'haskell-constraints' 'haskell-exact-pi'
+         'haskell-integer-logarithms' 'haskell-integer-roots' 'haskell-mod' 
'haskell-random'
+         'haskell-semirings' 'haskell-vector')
+makedepends=('ghc' 'uusi' 'haskell-quickcheck' 'haskell-quickcheck-classes' 
'haskell-smallcheck'
+             'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck' 
'haskell-tasty-rerun'
+             'haskell-tasty-smallcheck' 'haskell-vector-sized')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
+sha256sums=('6ef092fe87feab2a0f5a80d15e302ed9c0085fbbe124d490740a6ef1497ef0d1')
+
+prepare() {
+  cd $_hkgname-$pkgver
+  gen-setup
+}
+
+build() {
+  cd $_hkgname-$pkgver
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --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 $_hkgname-$pkgver
+  runhaskell Setup test --show-details=direct
+}
+
+package() {
+  cd $_hkgname-$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
+}
\ No newline at end of file

Reply via email to