Date: Sunday, June 28, 2020 @ 20:18:43 Author: felixonmars Revision: 655205
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 655204, haskell-math-functions/trunk/PKGBUILD) ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Copied: haskell-math-functions/repos/community-staging-x86_64/PKGBUILD (from rev 655204, haskell-math-functions/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-06-28 20:18:43 UTC (rev 655205) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=math-functions +pkgname=haskell-math-functions +pkgver=0.3.4.0 +pkgrel=5 +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") +makedepends=('ghc' 'haskell-erf' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit' + 'haskell-tasty-quickcheck' 'haskell-vector-th-unbox') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('a4a8bdf14961f2ac60037b1af9ad17365aa1165ac4ae58901b66795f8b4440acc04e2363fa31a8e6c4c4501430f323c15196d0434a988d8276f9d173efe665e0') + +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 $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 +} + +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 +}