Date: Friday, May 18, 2018 @ 06:22:48
  Author: felixonmars
Revision: 324198

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-monadrandom/repos/community-staging-x86_64/
  haskell-monadrandom/repos/community-staging-x86_64/PKGBUILD
    (from rev 324197, haskell-monadrandom/trunk/PKGBUILD)

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

Copied: haskell-monadrandom/repos/community-staging-x86_64/PKGBUILD (from rev 
324197, haskell-monadrandom/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-18 06:22:48 UTC (rev 324198)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=MonadRandom
+pkgname=haskell-monadrandom
+pkgver=0.5.1
+pkgrel=9
+pkgdesc="Random-number generation monad."
+url="https://hackage.haskell.org/package/${_hkgname}";
+license=("custom")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-primitive" "haskell-random" 
"haskell-transformers-compat")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('2653531795f07b5d4cd54fe6313858bfff0f1bafc50677b7be2922f466cb5fa370bfd3ca3cb1c7a187af617599b476b2b8c76a2de03821211e53ef3f39b473bf')
+
+prepare() {
+    sed -i '/fail/d' ${_hkgname}-${pkgver}/${_hkgname}.cabal
+}
+
+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