[arch-commits] Commit in haskell-comonad/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 24 18:49:31 UTC 2020


    Date: Thursday, December 24, 2020 @ 18:49:31
  Author: felixonmars
Revision: 788635

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 788634, haskell-comonad/trunk/PKGBUILD)

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

Copied: haskell-comonad/repos/community-staging-x86_64/PKGBUILD (from rev 788634, haskell-comonad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-24 18:49:31 UTC (rev 788635)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=comonad
+pkgname=haskell-comonad
+pkgver=5.0.7
+pkgrel=1
+pkgdesc="Comonads"
+url="https://github.com/ekmett/comonad/"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-distributive' 'haskell-indexed-traversable' 'haskell-tagged'
+         'haskell-transformers-compat')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('6377f13b651c30aaba1f68448394a4048b15c4f8e97fe714281d15a51190b8ec6e1157a6fb332abfb75060bb2f4948db22fb35c537bf01836ed94ece99fdccce')
+
+build() {
+    cd $_hkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+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
+}



More information about the arch-commits mailing list