Date: Thursday, October 19, 2017 @ 05:22:38
  Author: felixonmars
Revision: 263450

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-statistics/repos/community-staging-i686/
  haskell-statistics/repos/community-staging-i686/PKGBUILD
    (from rev 263449, haskell-statistics/trunk/PKGBUILD)
  haskell-statistics/repos/community-staging-x86_64/
  haskell-statistics/repos/community-staging-x86_64/PKGBUILD
    (from rev 263449, haskell-statistics/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   41 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   41 ++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Copied: haskell-statistics/repos/community-staging-i686/PKGBUILD (from rev 
263449, haskell-statistics/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2017-10-19 05:22:38 UTC (rev 263450)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=statistics
+pkgname=haskell-statistics
+pkgver=0.14.0.2
+pkgrel=13
+pkgdesc="A library of statistical types, data, and functions"
+url="https://github.com/bos/statistics";
+license=("custom:BSD2")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-aeson" "haskell-base-orphans" "haskell-erf" 
"haskell-math-functions"
+         "haskell-monad-par" "haskell-mwc-random" "haskell-primitive" 
"haskell-vector"
+         "haskell-vector-algorithms" "haskell-vector-binary-instances" 
"haskell-vector-th-unbox")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('8ee0d6ae6f7a27b4b5a6dddd1e2c9a9b086224cfb7157efc396052263c5c89aea5eeb625a312e0c08f78cee3d819cdaa139f5a7bfc4413847592db45b1b697e4')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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
+}
+
+package() {
+    cd "${srcdir}/${_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"
+}

Copied: haskell-statistics/repos/community-staging-x86_64/PKGBUILD (from rev 
263449, haskell-statistics/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-10-19 05:22:38 UTC (rev 263450)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=statistics
+pkgname=haskell-statistics
+pkgver=0.14.0.2
+pkgrel=13
+pkgdesc="A library of statistical types, data, and functions"
+url="https://github.com/bos/statistics";
+license=("custom:BSD2")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-aeson" "haskell-base-orphans" "haskell-erf" 
"haskell-math-functions"
+         "haskell-monad-par" "haskell-mwc-random" "haskell-primitive" 
"haskell-vector"
+         "haskell-vector-algorithms" "haskell-vector-binary-instances" 
"haskell-vector-th-unbox")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('8ee0d6ae6f7a27b4b5a6dddd1e2c9a9b086224cfb7157efc396052263c5c89aea5eeb625a312e0c08f78cee3d819cdaa139f5a7bfc4413847592db45b1b697e4')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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
+}
+
+package() {
+    cd "${srcdir}/${_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"
+}

Reply via email to