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

Felix Yan felixonmars at archlinux.org
Tue Feb 25 20:59:21 UTC 2020


    Date: Tuesday, February 25, 2020 @ 20:59:21
  Author: felixonmars
Revision: 582019

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-math-functions/repos/community-staging-x86_64/
  haskell-math-functions/repos/community-staging-x86_64/PKGBUILD
    (from rev 582018, haskell-math-functions/trunk/PKGBUILD)

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

Copied: haskell-math-functions/repos/community-staging-x86_64/PKGBUILD (from rev 582018, haskell-math-functions/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-25 20:59:21 UTC (rev 582019)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=math-functions
+pkgname=haskell-math-functions
+pkgver=0.3.3.0
+pkgrel=6
+pkgdesc="Special functions and Chebyshev polynomials"
+url="https://github.com/bos/math-functions"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-data-default-class' "haskell-primitive" "haskell-vector"
+         "haskell-vector-th-unbox")
+makedepends=('ghc' 'haskell-erf' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f6ac6f9fb604207c11d7888fa375a52b544732dd8e811c3b9bf74237bbc0dc83839eb83c11c5ef0dd88666cff4919d4e06236e14d84da7065b4dc75717ceafad')
+
+build() {
+    cd $_hkgname-$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 \
+            -f-system-expm1
+    runhaskell Setup build
+    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
+}
+
+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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list