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

Felix Yan felixonmars at archlinux.org
Tue Feb 11 10:00:00 UTC 2020


    Date: Tuesday, February 11, 2020 @ 10:00:00
  Author: felixonmars
Revision: 566933

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 566932, haskell-math-functions/trunk/PKGBUILD)

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

Copied: haskell-math-functions/repos/community-staging-x86_64/PKGBUILD (from rev 566932, haskell-math-functions/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-02-11 10:00:00 UTC (rev 566933)
@@ -0,0 +1,46 @@
+# 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=4
+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
+    
+    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 \
+            -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