Date: Tuesday, March 6, 2018 @ 15:27:31
  Author: felixonmars
Revision: 303086

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-monad-logger/repos/community-staging-x86_64/
  haskell-monad-logger/repos/community-staging-x86_64/PKGBUILD
    (from rev 303085, haskell-monad-logger/trunk/PKGBUILD)

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

Copied: haskell-monad-logger/repos/community-staging-x86_64/PKGBUILD (from rev 
303085, haskell-monad-logger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-03-06 15:27:31 UTC (rev 303086)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=monad-logger
+pkgname=haskell-monad-logger
+pkgver=0.3.28.1
+pkgrel=16
+pkgdesc="A class of monads which can log messages."
+url="https://github.com/kazu-yamamoto/logger";
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-blaze-builder' 'haskell-conduit' 
'haskell-conduit-extra'
+         'haskell-exceptions' 'haskell-fast-logger' 'haskell-lifted-base' 
'haskell-monad-control'
+         'haskell-monad-loops' 'haskell-mtl' 'haskell-resourcet' 'haskell-stm' 
'haskell-stm-chans'
+         'haskell-text' 'haskell-transformers-base' 
'haskell-transformers-compat'
+         'haskell-unliftio-core')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('f126559f6ca647adc00c36229b30462ba71aa71f3d72a3b451a654b497f835563f8ee29e94989332fe7bd4f410732a2ffd933bc06bcd539de36d411c17ffacf6')
+
+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 \
+            -ftemplate_haskell
+    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