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

Felix Yan felixonmars at gemini.archlinux.org
Wed Feb 2 18:52:22 UTC 2022


    Date: Wednesday, February 2, 2022 @ 18:52:22
  Author: felixonmars
Revision: 1123013

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 1123012, haskell-rank2classes/trunk/PKGBUILD)

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

Copied: haskell-rank2classes/repos/community-staging-x86_64/PKGBUILD (from rev 1123012, haskell-rank2classes/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-02-02 18:52:22 UTC (rev 1123013)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=rank2classes
+pkgname=haskell-rank2classes
+pkgver=1.4.4
+pkgrel=6
+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=('8a4bf5ffd889d9ca18142703711539035b0d124de0d2e0e9906c361a47036854a32795c71bf1a9e50d99b46fd1f23d9534f743226f1cad0f827a6faa9789bb38')
+
+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 --ghc-option=-fllvm
+    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 --show-details=direct
+}
+
+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