Date: Sunday, January 24, 2021 @ 10:04:41
  Author: felixonmars
Revision: 827977

archrelease: copy trunk to community-staging-x86_64

Added:
  dhall/repos/community-staging-x86_64/
  dhall/repos/community-staging-x86_64/PKGBUILD
    (from rev 827976, dhall/trunk/PKGBUILD)

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

Copied: dhall/repos/community-staging-x86_64/PKGBUILD (from rev 827976, 
dhall/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-01-24 10:04:41 UTC (rev 827977)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=dhall
+pkgver=1.37.1
+pkgrel=21
+pkgdesc='A configuration language guaranteed to terminate'
+url='https://dhall-lang.org'
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 
'haskell-ansi-terminal'
+         'haskell-atomic-write' 'haskell-case-insensitive' 'haskell-cborg' 
'haskell-cborg-json'
+         'haskell-contravariant' 'haskell-data-fix' 'haskell-diff' 
'haskell-dotgen'
+         'haskell-either' 'haskell-half' 'haskell-hashable' 
'haskell-lens-family-core'
+         'haskell-megaparsec' 'haskell-memory' 'haskell-mmorph' 
'haskell-network-uri'
+         'haskell-optparse-applicative' 'haskell-parsers' 
'haskell-parser-combinators'
+         'haskell-prettyprinter' 'haskell-prettyprinter-ansi-terminal' 
'haskell-pretty-simple'
+         'haskell-profunctors' 'haskell-repline' 'haskell-serialise' 
'haskell-scientific'
+         'haskell-text-manipulate' 'haskell-th-lift-instances' 
'haskell-transformers-compat'
+         'haskell-unordered-containers' 'haskell-uri-encode' 'haskell-vector' 
'haskell-cryptonite'
+         'haskell-http-types' 'haskell-http-client' 'haskell-http-client-tls')
+makedepends=('ghc' 'haskell-foldl' 'haskell-generic-random' 'haskell-mockery' 
'haskell-quickcheck'
+             'haskell-quickcheck-instances' 'haskell-special-values' 
'haskell-spoon'
+             'haskell-tasty' 'haskell-tasty-expected-failure' 
'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck' 'haskell-tasty-silver' 
'haskell-turtle' 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('178dec33d20070f5a3b5d68d701bc7b383090525172dffe991a8ffdd3d8134b813f20d33a6c7cbd963bc04530c7e484b0d35737147870acd8fa3375f4b419c93')
+
+build() {
+    cd $pkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" 
--datasubdir="$pkgname" --disable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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 $pkgname-$pkgver
+    # https://github.com/dhall-lang/dhall-haskell/issues/1985
+    #runhaskell Setup test
+}
+
+package() {
+    cd $pkgname-$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