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

Felix Yan felixonmars at archlinux.org
Sat Aug 1 02:21:14 UTC 2020


    Date: Saturday, August 1, 2020 @ 02:21:13
  Author: felixonmars
Revision: 667045

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-mono-traversable/repos/community-staging-x86_64/
  haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD
    (from rev 667044, haskell-mono-traversable/trunk/PKGBUILD)

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

Copied: haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD (from rev 667044, haskell-mono-traversable/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-01 02:21:13 UTC (rev 667045)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=mono-traversable
+pkgname=haskell-mono-traversable
+pkgver=1.0.15.1
+pkgrel=41
+pkgdesc="Type classes for mapping, folding, and traversing monomorphic containers"
+url="https://github.com/snoyberg/mono-traversable"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-split' 'haskell-unordered-containers'
+         'haskell-vector' 'haskell-vector-algorithms')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-foldl' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('adf1af35b93af0605667d8b033415f318c6dab225499fdd1d9eab349fb1eedca2623c98f9dce83f94ed27db75b6f0aa88027daa748c7b3db05f47f68b505b0c8')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/semigroups/d' $_hkgname.cabal
+}
+
+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
+    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