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

Felix Yan felixonmars at gemini.archlinux.org
Wed Jul 6 23:40:34 UTC 2022


    Date: Wednesday, July 6, 2022 @ 23:40:34
  Author: felixonmars
Revision: 1247229

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

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

Copied: haskell-arithmoi/repos/community-staging-x86_64/PKGBUILD (from rev 1247228, haskell-arithmoi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-07-06 23:40:34 UTC (rev 1247229)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=arithmoi
+pkgname=haskell-arithmoi
+pkgver=0.12.0.1
+pkgrel=85
+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 --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 $_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