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

Felix Yan felixonmars at gemini.archlinux.org
Tue Jan 11 16:29:43 UTC 2022


    Date: Tuesday, January 11, 2022 @ 16:29:43
  Author: felixonmars
Revision: 1100573

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-genvalidity/repos/community-staging-x86_64/PKGBUILD (from rev 1100572, haskell-genvalidity/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-11 16:29:43 UTC (rev 1100573)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=genvalidity
+pkgname=haskell-genvalidity
+pkgver=1.0.0.1
+pkgrel=4
+pkgdesc="Testing utilities for the validity library"
+url="https://github.com/NorfairKing/genvalidity"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-random' 'haskell-validity')
+makedepends=('ghc' 'uusi' 'haskell-hspec' 'haskell-hspec-core')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('520122e67b3b95798b9701cd090a80886efd4f029f1a7f54b76adf427d8e457ed3eafa1d3fd4d40b5456ae592cd9153e43f8ed2ed52b014a9f5b66de02f8b01f')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    gen-setup
+}
+
+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