Date: Tuesday, September 13, 2022 @ 22:15:04
  Author: felixonmars
Revision: 1301102

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-genvalidity-hspec/repos/community-staging-x86_64/PKGBUILD (from 
rev 1301101, haskell-genvalidity-hspec/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-09-13 22:15:04 UTC (rev 1301102)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_hkgname=genvalidity-hspec
+pkgname=haskell-genvalidity-hspec
+pkgver=1.0.0.1
+pkgrel=2
+pkgdesc="Standard spec's for GenValidity instances"
+url="https://github.com/NorfairKing/validity";
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-genvalidity' 'haskell-genvalidity-property' 
'haskell-hspec'
+         'haskell-hspec-core' 'haskell-quickcheck' 'haskell-validity')
+makedepends=('ghc' 'uusi')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+        
$pkgname-hspec-2.10.patch::https://github.com/NorfairKing/validity/pull/107.patch)
+sha512sums=('9d6a6538eff06d6cecf451a08e965ad0fd6acb0d528a43f9295a19002155eb8cdca647f9ddc572e77a4277746ecfa36155389ae9984e649cfecb9177668f85dd'
+            
'e6ee4d0489c706ed1d6d02f6e749f73ea48d8ea699c3e9d7922a4e859b5904a0305388bd119301a6b38b8d7c4b46da2b276641a3cb6d9fd23cbd4b66436fb703')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -p2 -i ../$pkgname-hspec-2.10.patch
+    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 --datasubdir=$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
+}

Reply via email to