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

Felix Yan felixonmars at gemini.archlinux.org
Tue Dec 21 12:48:26 UTC 2021


    Date: Tuesday, December 21, 2021 @ 12:48:26
  Author: felixonmars
Revision: 1081532

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 1081531, haskell-arithmoi/trunk/PKGBUILD)

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

Copied: haskell-arithmoi/repos/community-staging-x86_64/PKGBUILD (from rev 1081531, haskell-arithmoi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-21 12:48:26 UTC (rev 1081532)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=arithmoi
+pkgname=haskell-arithmoi
+pkgver=0.12.0.1
+pkgrel=18
+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')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('e6f2e92e292ec9cf4e1cd783dbdfdbe968ed5168160fb9c4a2b3ea9ad92caaaf750c353f6ccd9234d83ba6c3430a0eebc62ea408cb7832bfc9dee6961e6823b9')
+
+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=-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 $_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
+}



More information about the arch-commits mailing list