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

Felix Yan felixonmars at gemini.archlinux.org
Sat Jan 1 17:33:41 UTC 2022


    Date: Saturday, January 1, 2022 @ 17:33:41
  Author: felixonmars
Revision: 1091872

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-genvalidity-property/repos/community-staging-x86_64/PKGBUILD (from rev 1091871, haskell-genvalidity-property/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-01 17:33:41 UTC (rev 1091872)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=genvalidity-property
+pkgname=haskell-genvalidity-property
+pkgver=1.0.0.0
+pkgrel=5
+pkgdesc="Standard properties for functions on Validity types"
+url="https://github.com/NorfairKing/validity"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-genvalidity' 'haskell-hspec' 'haskell-pretty-show' 'haskell-quickcheck'
+         'haskell-validity')
+makedepends=('ghc' 'uusi')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('fdb11224baad570cc91762ade0a09be924547df0cb6d3438463e17d981ac8298052051f3dc3df3ccf17386eb12e47cf68a218d4374d806f709df106018fd290c')
+
+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