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

Felix Yan felixonmars at archlinux.org
Tue Jun 23 22:24:26 UTC 2020


    Date: Tuesday, June 23, 2020 @ 22:24:19
  Author: felixonmars
Revision: 651771

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-rank2classes/repos/community-staging-x86_64/PKGBUILD (from rev 651770, haskell-rank2classes/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-06-23 22:24:19 UTC (rev 651771)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=rank2classes
+pkgname=haskell-rank2classes
+pkgver=1.4.0.1
+pkgrel=5
+pkgdesc="Standard type constructor class hierarchy, only with methods of rank 2 types"
+url="https://github.com/blamario/grampa/tree/master/rank2classes"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-distributive')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-markdown-unlit'
+             'haskell-tasty' 'haskell-tasty-hunit')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('57e5d1ab9bcd1cfefe4183cf9d3048f6d7f2111db70e1dd289b7b6b34c42f4160f52cfb1e55805e1b8cd55437633d60029c736c8351becf1a2e5d80d0c3bf019')
+
+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