Date: Tuesday, October 6, 2020 @ 20:51:02
  Author: felixonmars
Revision: 719535

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-comonad/repos/community-staging-x86_64/PKGBUILD (from rev 
719534, haskell-comonad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-10-06 20:51:02 UTC (rev 719535)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+_hkgname=comonad
+pkgname=haskell-comonad
+pkgver=5.0.6
+pkgrel=44
+pkgdesc="Comonads"
+url="https://github.com/ekmett/comonad/";
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-distributive' 'haskell-tagged' 
'haskell-transformers-compat')
+makedepends=('haskell-cabal-doctest' 'ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('0b7fc727a2b972203d1651049a4f4c371a8f134d64d36409d60fbc4d11b7eb9650c79cf917abaa3f66084d7c5e9f32b288862a5e93c3d93c16c11533a446cfa5')
+
+build() {
+    cd $_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 \
+            -fdistributive -fcontravariant -fcontainers -ftest-doctests
+    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
+}
+
+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
+}

Reply via email to