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

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 8 16:16:52 UTC 2022


    Date: Monday, August 8, 2022 @ 16:16:52
  Author: felixonmars
Revision: 1261261

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-chell-quickcheck/repos/community-staging-x86_64/
  haskell-chell-quickcheck/repos/community-staging-x86_64/PKGBUILD
    (from rev 1261260, haskell-chell-quickcheck/trunk/PKGBUILD)

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

Copied: haskell-chell-quickcheck/repos/community-staging-x86_64/PKGBUILD (from rev 1261260, haskell-chell-quickcheck/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-08 16:16:52 UTC (rev 1261261)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=chell-quickcheck
+pkgname=haskell-chell-quickcheck
+pkgver=0.2.5.3
+pkgrel=33
+pkgdesc="QuickCheck support for the Chell testing library"
+url="https://github.com/typeclasses/chell"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-chell' 'haskell-quickcheck' 'haskell-random')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('d2f8eca8995c45aa3732303c7168f12d98b0b121ea5730dc481041a900b6c35b6ac965cc47eea6710f486c4ed850915daeacca1e8a8f844a242386c9dd854a96')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
+        --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
+}
+
+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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt"
+}



More information about the arch-commits mailing list