Date: Saturday, July 16, 2022 @ 03:58:18
  Author: felixonmars
Revision: 1253530

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: dhall/repos/community-staging-x86_64/PKGBUILD (from rev 1253529, 
dhall/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-07-16 03:58:18 UTC (rev 1253530)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=dhall
+pkgver=1.41.1
+pkgrel=51
+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-base16-bytestring' 
'haskell-case-insensitive'
+         'haskell-cborg' 'haskell-cborg-json' 'haskell-contravariant' 
'haskell-cryptohash-sha256'
+         'haskell-data-fix' 'haskell-diff' 'haskell-dotgen' 'haskell-either' 
'haskell-half'
+         'haskell-hashable' 'haskell-lens-family-core' 'haskell-megaparsec' 
'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-unordered-containers' 'haskell-uri-encode' 'haskell-vector' 
'haskell-cryptonite'
+         'haskell-http-types' 'haskell-http-client' 'haskell-http-client-tls')
+makedepends=('ghc' 'uusi' 'haskell-doctest' 'haskell-foldl' 
'haskell-generic-random' 'haskell-mockery'
+             'haskell-quickcheck' 'haskell-quickcheck-instances' 
'haskell-special-values'
+             'haskell-spoon' 'haskell-system-filepath' 'haskell-tasty'
+             'haskell-tasty-expected-failure' 'haskell-tasty-hunit' 
'haskell-tasty-quickcheck'
+             'haskell-tasty-silver' 'haskell-temporary' 'haskell-turtle')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('c5f58d47ae9acb6fd8fe4c267963ad5c2eb0091354bcbeda43a193b12b5db1ec456597cc42357b571b869fc39cb9929a19c62b59aa3682da3c3e594dac8541a0')
+
+prepare() {
+    cd $pkgname-$pkgver
+    uusi -u pretty-simple $pkgname.cabal
+}
+
+build() {
+    cd $pkgname-$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 $pkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+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