Date: Friday, May 18, 2018 @ 04:46:31
  Author: felixonmars
Revision: 324113

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-data-accessor-transformers/repos/community-staging-x86_64/
  haskell-data-accessor-transformers/repos/community-staging-x86_64/PKGBUILD
    (from rev 324112, haskell-data-accessor-transformers/trunk/PKGBUILD)

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

Copied: 
haskell-data-accessor-transformers/repos/community-staging-x86_64/PKGBUILD 
(from rev 324112, haskell-data-accessor-transformers/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-18 04:46:31 UTC (rev 324113)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=data-accessor-transformers
+pkgname=haskell-data-accessor-transformers
+pkgver=0.2.1.7
+pkgrel=7
+pkgdesc="Use Accessor to access state in transformers State monad"
+url="http://www.haskell.org/haskellwiki/Record_access";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-data-accessor")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('c7ca31fee72c0a52446a9d54b6dd0976bf2af8e495d91a0fe76a29436830ee8a6c7e56418168f6698a7542f405ef6de75aaf067db6b44733bf5f3ec8e5e49f4e')
+
+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